Read more stories on Hashnode
Articles with this tag
Problem: How to avoid threading race conditions in your class?
Solution: Use actor that handles all the concurrency for you!
Code that runs...
Problem: How to easily reuse/share/discover custom SwiftUI views ?
Solution: Add your custom SwiftUI views to the Xcode view library !
Problem: How to TDD async/await ?
Solution: Stub the response, async function needs to know it's result before call
IMPORTANT: This tutorial is only...
Problem: How to test your navigation logic in SwiftUI ?
Solution: Extract navigation logic in a separate Service that handles it using UIKit
Problem: How test behavior inside a SwiftUI view ?
Solution: Extract all the logic in a ViewModel and test drive only the behaviour using the TDD...
Problem: How to automate regression on UI screens?
Solution: Snapshot Tests !
SwiftUI and the Live Preview are a good matchThanks to them I was able...