I'm having an issue with Xcode throwing a constraint message in the console every time I use a NavigationTitle. I'd like to say that I've read through the follo
The onTapGesture in SWiftUI doesn't work reliably. This example shows the problem, which is that sometimes when you tap on a cell, the background changes to gr
I'm playing with the new Xcode 12 beta & SwiftUi 2.0. .matchedGeometryEffect() modifier is great to do Hero animations. There is a new property @Namespace i
If I have a string that I will place inside of a SwiftUI button label, how can I determine how much width I need to allow the button to consume such that the te
@State var documents: [ScanDocument] = [] func loadDocuments() { guard let appDelegate = UIApplication.shared.delegate as? AppDelegate else {
I have an issue using a sheet inside a ForEach. Basically I have a List that shows many items in my array and an image that trigger the sheet. The problem is th
Imagine you've built a screen that utilizes the sheet API to present modal sheets, and now with SwiftUI 2.0 you want to use fullScreenCover instead when run on
I have a SwiftUI app, its a tab based app struct Tab_View: View { var body: some View { TabView{ Main1_View().tabItem {
I'd like to remove this gray box in a UIPickerView. I'm trying to recreate this. If there is a way I'd greatly appreciate it. Here's the code snippet. I'm not
I have a view that uses searchable. I would like do dismiss the keyboard programmatically if user starts scrolling on the List. Same behavior as you see in the
Is it possible in SwiftUI to set a button with an action on tap and a different action on long press ? I have tried this: Button(action: { self.handleButton
I'm exploring new things came in Xcode 12 and SwiftUI 2.0 I have created a pageview onboarding screen with TabView and PageTabViewStyle in Xcode 12, iOS 14, Swi
I was wondering if it is possible to use the View.onDrag and View.onDrop to add drag and drop reordering within one LazyGrid manually? Though I was able to make
Is there a way, using SwiftUI, to create a Slider with 2 handles? I'm working on a project that that requires settings a low and high point for a random value t
Now that AppDelegate and SceneDelegate are removed from SwiftUI, where do I put the code that I used to have in SceneDelegate and AppDelegate, Firebase config
I'm trying to make simple app, the app seems working well on simulation mode, but test on my iPhone the button looks different from simulation iPhone, link the
I have a view and I want to add two icons to it, at top right side and at bottom right side. I managed to do that: I used two ZStacks: ZStack(alignment: .botto
It is possible to hide this dots which is showing if I chose tabViewStyle(PageTabViewStyle()). I don't found any result so im asking you guys.Its iPhone screen
struct ContentView: View { @EnvironmentObject var demoModel: DemoModel var body: some View { //this works demoModel.isLoggedIn ? Text("
I have a @Published property in ViewModel and .onReceive in View. When my @Published var changes the .onReceive is not even executed. View is