瀏覽代碼

修复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
      Object adopting the TunerDelegate protocol that should receive callbacks
      from this tuner.
      from this tuner.
      */
      */
-    @objc public var delegate: TunerDelegate?
+    @objc public weak var delegate: TunerDelegate?
     
     
     /**
     /**
      Initializes a new Tuner.
      Initializes a new Tuner.