Back to Browse

How to improve your Swift Code - PART 3 - Xcode file structure in SwiftUI

2.4K views
May 19, 2022
9:03

This is the 2nd part of a new Swift tutorial series, where I will talk all about Coding Best Practices, Style Guide and Clean Code. You will see some considerations about file structure in Swift classes and SwiftUI views. You can take advantage of markers and the minimap for faster navigation in your files. PART 1 https://youtu.be/A8w3KzwXQ9I PART 2 https://youtu.be/mnSR1giMhYU I will go through an example in SwiftUI and explain each step one-by-one. The main goal is to write code that is not only functionally correct but also easy to understand and easy to modify. I will try to follow the common rules as much as possible. Following these rules can significantly improve your code base. Remember you not only write code that you need to understand now but also for your future self and also other developers in your group. If you are a future iOS developer, this might help you during your interview process. Although, I think if your are a seasoned developer, you probably heard about all these considerations, it might be a good reminder and refresher for you. If you liked what you learned and you want to see more, check out one of my courses! 👨‍💻 my SwiftUI course https://school.swiftyplace.com/courses/swiftui-course 👨‍💻 my Core Data and SwiftUI course https://school.swiftyplace.com/courses/swiftui-and-core-data 👩🏻‍💻 Combine course https://school.swiftyplace.com/courses/master-combine-framework ⬇️ Project starter files: https://github.com/gahntpo/CatAPISwiftUI #SwiftUI #Xcode #BestPractice #FileStructure

Download

0 formats

No download links available.

How to improve your Swift Code - PART 3 - Xcode file structure in SwiftUI | NatokHD