Replace the Objective-C SFRestDelegate with the Swift RestClient. For example, instead of using a for loop to iterate an array and do some filtering, use a compactMap method. While a straight conversion from Objective-C to Swift, can work, there is often a better way to implement something in Swift. When you are ready to start writing some Swift, start with something small. Xcode can really help you, by suggesting changes or making the changes automatically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |