[EDIT] I was hoping that Apple would have fixed what is obviously a bug. The solution is to clear the cache, close and reopen Xcode.. I am on Xcode Beta and sta
I'm using SwiftUI's new app lifecycle coming in iOS 14. However, I'm stuck at how to access my AppState (single source of truth) object in the AppDelegate. I ne
I’m experimenting with a “pure” SwiftUI app. It doesn’t have a SceneDelegate so I’m unsure of where to put Hosting Controller stuf
I am following the ios app development tutorial for the Scrumdinger app and I have followed the tutorial and it has worked until I finished the Passing Data wit
I am making a SwiftUI app for iOS 14, and I have a sidebar list that uses the new children: attribute of list to make the list expandable: However, at the momen
I tried to use a custom view as the navigation title inside a NavigationView. Every time when the detail view is popped up, the toolbar items are always resized
I'm having this problem that my messages don't have corner radius on the other side. This is how it looks: And there is the code for it: HStack { HStack {
TextEditor seems to have a default white background. So the following is not working and it displayed as white instead of defined red: var body: some View {
I have the below series of controllers and views. However, when I use the navigation link on the MoreView it changes the tabBarItem.title value. For instance it
When I set corner radius with constant value, depending on the size of the image, the results don't come out the way I want. Image(“myImage”) .c
App was working fine when the deployment target was 15.2, but then I needed to change the deployment target to iOS 13 to support more devices. Still works fine
I'm trying to implement in SwiftUI where you press a button in a view on one tab, it changes to another tab. I would do with UIKit: if [condition...button press
I am trying to auto select a text field for a MacOS application. I added .focusable() but this does not change the result and the text field is still not auto s
Currently I have a view that looks like this. struct StatsView: View { var body: some View { ScrollView { Text("Test1") Tex
I am trying to create a view in SwiftUI where the background of the image on the left should scale vertically based on the height of the text on the right. I t
Given an HStack like the following: HStack{ Text("View1") Text("Centre") Text("View2") Text("View3")
When I use a ForEach loop over an array twice within a view, I get the following warning at runtime:LazyVGridLayout: the ID 84308994-9D16-48D2-975E-DC40C5F9EFFF
I have standard iOS app, with a standard app icon contained in Assets. I'd like to display the app icon within the app (using SwiftUI). Note that I am not ask
Hello there. I am wondering, in SwiftUI, how do you mask the contents of a rounded rectangle so that a child rectangle clips the corners. In my example I ha
I'm trying to change the cursor to a crosshair in SwiftUI on MacOS. I've put the following code into the AppDelegate applicationDidFinishLaunching() function: