When a SwiftUI app is minimized and the dock icon is clicked. The app won't be deminimized and put to the front just like other apps do. import SwiftUI @main s
There doesn't seem to be an intuitive way of moving a view/shape along a custom path, particularly a curvy path. I've found several libraries for UIKit that all
I am using the following code to show a playing card. Not sure why there is a large gap at the top. This is on iOS 15.4 var body: some View { Text(String(Ch
I have a pretty complicated UI so I broke my view models into multiple observable object classes that manage each part of the UI. The 2 view model instances are
I'm trying to animate the opening and closing of a disclosure group. I've tried several attempts without being able to get any sort of animation. This code synt
I am trying to integrate Admob. SDK version is 9.0. I copied the code from https://medium.com/geekculture/adding-google-mobile-ads-admob-to-your-swiftui-app-in-
How can I visualize this data as table in SwiftUI: I have an invoice object with pages and tables and cells. The cells do have information about rowIndex and co
I am trying to make a simple Todo app and I'm trying to implement a feature where if I click on a row, the foreground color will be change. However, I have two
I am trying to add a TextField in SwiftUI. It successfully appears with the initial text, but it is not editable in the preview display, only when I run a simul
TL;DR: Is there any way to have custom button style (custom pressed state) in SwiftUI on tvOS while it is still working correctly with Accessibility Focus API a
I have a macOS Monterrey app that has a TextField on the toolbar. I use this to search for text on my app. Now, I'm trying to add a keyboard shortcut to focus o
I am new to SwiftUI and am trying out the SecureFields now. I am using two SecureFields in one VStack and for some reason when I use the iOS keyboard they show
I'm total newbie in coding and are trying to make a small app for my own. This is working as I want but I've no idea how to make the movie loop? Tried to look e
We are developing a application with virtual camera plugin for macOS by using swiftUI & swift. It has also C++ & objective C library. When we use that p
Background I have two TextFields, one of which has a keyboard type of .decimalPad. Given that there is no 'Done' button when using a decimal pad keyboard to clo
How to pass data to .sheet(isPresented) I have 10 names that I get from my JSON API, but when I click on the name, the .sheet(isPresented) shows one name. In al
I'm using SwiftUI's drag & drop modifiers. Since, iOS 15 gives an option to customise the onDrag modifier with a preview I'm using it as shown below. Issue:
I am trying to update my map's style URL immediately when the device changes from light/dark mode in my SwiftUI app. The error below shows on every line where "
I have two texts that I would like to display in a navigation title: ... .navigationTitle(Text(getTitle()) + Text(" (\(selection + 1)/\(sequenceObject.h
I'm using a NavigationView to create a sidebar on macOS. I can toggle the sidebar using this code: Button { NSApp.keyWindow?.firstResponder?.tryToPerform(