Top "Swiftui" questions

SwiftUI is a way to build user interfaces across all Apple platforms.

SwiftUI dismiss modal

Since SwiftUI is declarative there is no dismiss methode. How can is add a dismiss/close button to the DetailView? …

swift modal-dialog swiftui
Custom back button for NavigationView's navigation bar in SwiftUI

I want to add a custom navigation button that will look somewhat like this: Now, I've written a custom BackButton …

swift navigationview swiftui
Include SwiftUI views in existing UIKit application

Is is possible to build views with SwiftUI side by side with an existing UIKit application? I have an existing …

swift swiftui
How to hide keyboard when using SwiftUI?

How to hide keyboard using SwiftUI for below cases? Case 1 I have TextField and I need to hide the keyboard …

ios swift keyboard swiftui textfield
Dynamically hiding view in SwiftUI

I'm trying to conditionally hide a DatePicker in SwiftUI. However, I'm having any issue with mismatched types: var datePicker = DatePicker($…

swift swiftui
How do I modify the background color of a List in SwiftUI?

I'm trying to recreate an UI I built with UIKit in SwiftUI but I'm running into some minor issues. I …

swift swiftui
iOS SwiftUI: pop or dismiss view programmatically

I couldn't find any reference about any ways to make a pop or a dismiss programmatically of my presented view …

ios swift swiftui
Difference between SceneDelegate and AppDelegate

In my SwiftUI project I see AppDelegate file as well as a SceneDelegate file. What are the differences between them? …

swift swiftui
UICollectionView and SwiftUI?

How to create grid of square items (for example like in iOS Photo Library) with SwiftUI? I tried this approach …

ios uicollectionview swiftui ios13
How to show NavigationLink as a button in SwiftUI

I've read a lot here about navigation in SwiftUI and tried a couple of things, but nothing is working as …

navigation swiftui