Swift - Improve computed properties in a class using Generics

后端 未结 0 1751
梦毁少年i
梦毁少年i 2021-01-12 00:58

I have this block of code in a view class I have:

private var notes: [String] = [] {
    didSet {
      if notes.count > 0, notes.count == (oldValue.count          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题