I'm trying to use the new SwiftUI Table with TextField's in each row. However, the behavior of the text field's is weird, for 3 reasons: Clicking on a text fiel
My code: Button(action: { AudioServicesPlaySystemSound(1026) isActive.toggle() }){
I am trying to implement a widget where the user can choose a city dynamically via an intent. I followed the step by step guide provided by apple here: https://
Here's my view's code: ScrollView { VStack { someView LazyVGrid( columns: [ GridItem( .adap
I am trying to change the preview image for drag and drop from the default for a GridView which seems to include all the visible items in the grid. As I underst
when using the MapKit.Map to display multiple Annotation overlapping, everything works properly whether you use MapPin, MapMarker or MapAnnotation. The tricky p
I am creating a iOS app with XCode. All source code has been written and compiled. The app runs in the iOS simulator. The user interface was created in SwiftUI
I’d like to render a table of text cells in my SwiftUI View in a way, that every cell auto-resizes just so much that the text fits in it. So I did this:
I currently have a LazyVGrid setup as such: struct NetworkGrid: View { var networks: [Network] let columns = [ GridItem(.flexible()),
I am trying to make it so the line chart display a gradient color from the line and down but I can't seem to get it to only go from the line. Instead it just fi
I'm trying to create a picker for a user to choose a folder in a SwiftUI app. However, there doesn't seem to be any SwiftUI document picker yet so I was attempt
What do I do about this? I get no useful info predictably. A search for UnsafeMutablePointer yields func scrollViewWillEndDragging(_ scrollView: UIScrollView,
I am trying to figure out if my code is causing the problem or if I should submit a bug report to Apple. In a new project, I have this code: ContentView() impor
I am implementing Sign In with Apple on my iOS app (SwiftUI). In SwiftUI, I can use the 'SignInWithAppleButton' (https://morioh.com/p/524e0408008c), this button
I'm having troubles figuring out the proper solution to centre an Image inside a VStack with an alignment of .leading. I've attempted and got these results but
PREVIOUS Q: swiftui, animation applied to parent effect child animation Now the TextView has its own state. RectangleView with TextView slide into screen in 3 s
In this app, there is a main screen (WorkoutScreen) that displays the contents of a list one at a time as it iterates through the list (current workout in a lis
Let’s say I have a model class Ball, that conforms to the ObservableObject protocol, and I define an optional instance of it (var ball: Ball?). Is there a
I am using a TextField to let the user add a price for something. To prevent the user adding other values as a number, I change the keyboard type to .decimalPad
I'm trying to implement the logic of programmatic view pop in SwiftUI I set a tag on the items and create a corresponding variable for the selected item, but wh