فهرست منبع

修复swift tuner bug

Steven 1 سال پیش
والد
کامیت
7efab8db03
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      KulexiuForStudent/KulexiuForStudent/Module/Widget/Model/TuningFunction/Tuner.swift

+ 1 - 1
KulexiuForStudent/KulexiuForStudent/Module/Widget/Model/TuningFunction/Tuner.swift

@@ -136,7 +136,7 @@ private let frequencies: [Float] = [
      Object adopting the TunerDelegate protocol that should receive callbacks
      from this tuner.
      */
-    @objc public var delegate: TunerDelegate?
+    @objc public weak var delegate: TunerDelegate?
     
     /**
      Initializes a new Tuner.