Why I cannot use String function in an extension in Swift?

后端 未结 0 767
既然无缘
既然无缘 2021-02-05 11:48

I want convert a CGFloat to String with String() but it throw!

    extension CGFloat {

    func stringer() -> String {

        return String(self)
           


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