I have a picker that will change an attribute of an object that is bound to the view. When the picker is changed I want to update the bound object so the change
What is the equivalent property wrappers for Kotlin: @propertyWrapper struct Foo { var wrappedValue: String { get { return "Test
I'm writing a simple Mines app to help me get to know SwiftUI. As such, I want primary click (usually LMB) to "dig" (reveal whether there's a mine there), and s
so I'm trying to make a search bar that doesn't run the code that displays the results until the user stops typing for 2 seconds (AKA it should reset a sort of
I'm experimenting code from https://alanquatermain.me/programming/swiftui/2019-11-15-CoreData-and-bindings/ my goal is to have DatePicker bind to Binding<
I am making a macOS app with swiftUI. I want to set the minimum size of the window to 800, 500. Also there is this thing that if I close the window, and reopen,
I would like to open my app's settings page inside the Settings app with Swift 4 in iOS 11. Just like the picture shows: The following codes doesn't work, it
I am not able to figure out how to make the "ball" entity a physics entity/body and apply a force to it. // I'm using UIKit for the user interface and RealityK
I am trying to implement an inputAccessoryView on a TextField in SwiftUI. The goal is to have a "Done" Button appear above the Keyboard which when pressed gets
I have created a DragGesture in a View that should select a @State(Bool) whether the user swipe left or right. The thing is that only swiping right is detecte
Just hopped into the world a multiLanguage settings in Xcode/Swift. After a good view on this tutorial I found it very easy to setting up multiple language usin
I had this all working in Swift 3 and earlier but with Swift 4 no matter what variation I use this code will instead output text as a URL. If I put in "This is
I have developed an iOS/ARKit app that functions as a content editor for my AR game. It has a fair amount of interface that I don't want to port over to Unity,
In my project I have multiple types of UITableview cell each containing UICollectionview. Initially I loaded 2 tableViewcell in 2 sections of UITableview. At
I am trying to setup a success/error view on a controller via protocol and extensions. What I want to achieve is that I want to get into the state where it is e
I need help I have app I'm using IGDB api and displaying games with no issue. I need ability to make user search and send the user text to api to display the ga
Im trying to create a ScrollView that in turn contains a GeometryReader (Explicitly not the other way around). The GeometryReader should contain an (image) with
I want to read the text in the text fields in my dynamic cells in the table view. Each cell has two text fields and the user can add more cells. My question : H
I have an app written in Swift that uses UNUserNotificationCenter and I have it presenting notifications when the app is in the foreground. What I want to do is
I have this ContentView with two different modal views, so I'm using sheet(isPresented:) for both, but as it seems only the last one gets presented. How could I