I found strange behavior in SwiftUI. The sheet shows empty text when I tap a list column first time. It seems correct after second time. Would you help me? impo
I have the following SwiftUI view and I want to have it repeat the scale animation to simulate a pulsing effect. However, in addition to the scaling, the circle
When I run a Picker Code in the Simulator or the Canvas, the Picker goes always back to the first option with an animation or just freezes. This happens since l
I have a list of Text views that include a year saved as an int. I'm displaying it in an interpolated string: Text("\($0.property) \($0.year) \($0.etc)") The p
Default swift project with view controller embedded in navigationController and pushing to next UIHostingController. How to call navigationController?.popViewC
I'm creating an app and I get this error: Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffeead03e18). Whole code runs without any errors, it's just when I try to
I have a Binding to a Double parameter that is set by a SwiftUI TextField. I use a custom Formatter that converts to and from a Double value. The TextField
So technically I want to show a loading screen view. I'm using fullScreenCover. struct ContentView: View { @State private var isLoading = false
How can I change the default gray background color of a GroupBox view in SwiftUI? I tried adding a background modifier, but this just changes the white backgrou
I'm using SwiftUI 3.0, Swift 5.5 and Xcode 13.2, tested on iOS 15.3 iPhone device, and iOS 15.2 iPhone simulator. I have tested the following. This is a view, w
How do I make my the code in .swipeActions be called instead of the one in .onTapGesture? I have a SwiftUI view like follows: struct ContentView: View {
Just playing with Swift UI basic app and the preview canvas is not showing even though I'm in canvas mode. App runs, and I have this little snippet what am I mi
SwiftUI doesn't appear to support UITabBar. How can I integrate that capability? Merely wrapping the view like one would a (eg) MKMapView, doesn't work because
I have 2 simple views: import SwiftUI struct ContentView: View { @State private var showingModalView = false var body: some View { Button(
I added toolbar to 2 text fields, but the toolbar shows up twice: This is the code for my custom text field: public struct SUIDecimalField: View { public var
I want to add a custom navigation button that will look somewhat like this: Now, I've written a custom BackButton view for this. When applying that view as l
So I tried to put a print statement while debugging in a SwiftUI View. print("landmark: \(landmark)") In the following body. var body: some View { Navig
I couldn't find any reference about any ways to make a pop or a dismiss programmatically of my presented view with SwiftUI. Seems to me that the only way is to
What is the purpose of @EnvironmentObject when we have @Binding property wrapper ? I am having trouble figuring out why @EnvironmentObject is needed. I took a l
i have used simple listing of data using List. I would like to add pull down to refresh functionality but i am not sure which is the best possible approach. Pu