如果我需要一个自定义类型在Swift,我可以typedef,我该怎么做? (像封闭语法typedef)
关键字typealias用于代替typedef
typealias CustomType = String var customString:CustomType = "Test String"
typealias CustomType = String var customString:CustomType = "Test String"