Example of the refactoring for iOS app written in Swift.
We have app written very poorly in Swift (I am objc developer originally, and this was my first full-Swift app). Goal - rewrite it to use Swift native capabilities and best practices. So let refactoring begins!
- correct if let and guard usage
- unneccessary force unwrapping avoidance
- remove NSNotification center usage
- unit tests with XCTest
- UI Tests with XCTest
- ...