© 2022 Hashnode
#swiftui
In this blog post I'll show you how to use the new SwiftUI PhotosPicker API that was announced in the WWDC22 session What's new in the Photos picker. The new SwiftUI PhotosPicker API is available on …
Xcode includes predefined SwiftUI code snippets which are not visible in the library (⇧⌘L). Snippets are indicated with {} (curly brackets) in the autocompletion list. I was able to find the followi…
Problem: How to test your navigation logic in SwiftUI ? Solution: Extract navigation logic in a separate Service that handles it using UIKit SwiftUI is very powerful tool, for UI creation and animatio…
SwiftUI is user interface that let you design applications in a declarative ways that is, we tell swiftui the way we want the user interface need. Alot of apple developers used SwiftUI presently cause…
Swift is a programming language created by Apple. It was designed to be faster and more reliable than Objective-C. One of Swift's features is that it can be a more expressive language than Objective-C…
Previously, I had built a text-to-speech app on Windows to help me listen to my Twitch chat while streaming. You can read about the project, why I built it, and download it here. This post is about th…
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 process ! You have this view to integrate Specs for …
Running unit tests in Swift will launch the (iOS) simulator and the app to which the unit test target belongs. The app probably has some startup logic, e.g asking a remote API for new data, loading in…
Is something wrong with this code? struct ContentView: View { var body: some View { Text("Hello, world!") padding() } } Look closer 🧐 struct ContentView: View { var b…
Swift provides with different ways of displaying visual effects like blur and vibrancy effects. These can mostly be used as background for views and can be used to improve the overall app design. You …