class Singleton { static let sharedInstance = Singleton() }
Reference: StackOverflow
本文标题:Swift 一行代码 单例
本文链接:https://www.haomeiwen.com/subject/qhljdttx.html
网友评论