I'm trying to add tappable segments to a Text and I have most of it but I cannot make an array of Texts with .onTapGestures. How can I add the tap gestures to
I'm looking to find the correct coordinate x,y of the 4 corners of the image display in the view. I wrote this code.. to calculate the first top left corner coo
After updating to iOS 15 and Xcode 13, my picker in my app is no longer showing a custom label. Running the app on an iOS 14 device, the pickers render fine. Th
As the title says i am trying to trigger a vibration when the button is clicked x amount of times. For example when the button is clicked 3 times I want a vibra
The background color of row views within a List inside a NavigationView inconsistently switch from transparent to white as I scroll.
I am trying to check my app and see if a value exists in user defaults and if it does exist they will be taken into the app. If it doesnt exist they need to ent
I have a view with @State var myTask:MyTask let priorities = ["","A","B","C","D","E","F","G","H","I","J","K"] var body: some View{ VStack{ Picke
I have a view hierarchy where sometimes there is a chance that an @EnvironmentObject is not resolved. Is there a way to check if such @EnvironmentObject exists
I am moving a view called Point (which is basically a point), the point is moving in the screen every 2 seconds, and I need to update the coordinates in real ti
A whiteness is seen in the area drawn with the red line. If I change the background color of the most inclusive Vstack, that white area changes. Deleting spacer
I want to be able to change the mapType from .standard to .satellite and .hybrid in xCode 13.3 Can anybody tell me if it is at all possible with this code? I im
Am I missing something in the following code? This app builds (macOS Monterey b5 / Xcode 13 b5) and executes perfectly on an iOS 15 device -- but causes a SIGAB
I'm using a UIScrollView to display an image with various markers on top. The image view has a UILongPressGestureRecognizer that detects long presses. When the
I have an init like so: @Binding var height: Double? init(height: Binding<Double?>? = nil) { self._height = height } I am getting an error: Value of
I'm exploring my way through swift & swiftui trying to teach myself. My current challenge is to produce a horizontal calendar that scrolls on a single line
I have a TextField at the top of my map in Xcode. The map is opening when you choose food, to find the nearest restaurant. I want TextField to search for the St
I used the following code as a reference: SwiftUI - Get size of child? SwiftUI - How to get size (height) of ScrollView content Get the current scroll position
I have created a very simple test in SwiftUI: Pokemon struct Pokemon: Identifiable { let id: Int let name: String } PokemonList struc
I'm trying to learn to make an API call in swiftUI, I'm following the next tutorial https://www.youtube.com/watch?v=1en4JyW3XSI but the code is giving me an err
I'm building a Widget with dynamic configuration. I provide a dynamic list of options with an Intents Extension - inside Intent Handler (code below). However on