Here is a bug in SwiftUI when you show modal from button inside navigation bar items. In code below Button 1 works as expected, but Button 2 works only once: s
I'm curious what SwiftUI is doing under the covers when applying an idealHeight to a Spacer's frame. Will the Spacer use the idealHeight as its target height bu
I know SwiftUI uses state-driven rendering. So I was assuming, when I delete Core Data Entity entries, that my List with Core Data elements gets refreshed immed
Goal: upload 3 images from SwiftUI app to Firebase, with different URL for each. Problem: I only managed to upload 1. What I have tried (but didn't work).... :
How can I use Inner Shadow on a Rectangle()? Rectangle() .foregroundColor(.green) .frame(width: 400, height: 300) I can only manage t
I'm trying to change the colour of my animation based on the state of something. The colour change works but it animates the previous (orange) colour with it. I
I am aware of how to dismiss a modal from a child view using @Environment (\.presentationMode) var presentationMode / self.presentationMode.wrappedValue.dismiss
In UIDatePicker we can do something like this datePicker.timeZone = TimeZone(secondsFromGMT: 5*60*60) in order to specify timezone of datepicker. But how
I'm attempting to create a grid of small square views, that when the user hovers over them with their thumb (or swipes across them), the little squares will tem
Im trying to test a simple publisher within the Combine framework and SwiftUI. My test tests a published bool named isValid in my view model. My view model al
I feel like I can sort of understand why what I'm doing isn't working but I'm still trying to wrap my head around Combine and SwiftUI so any help here would be
I have a SwiftUI project. For all but one of the views, I want to allow portrait and only portrait mode. For only one view, I want to allow both portrait and la
I'm attempting to create a custom property wrapper supported by SwiftUI, meaning that changes to the corresponding properties values would cause an update to th
I'm looking for the best way to create a bind between textfields and ViewModel. At the moment I'm creating a @State for each textfield and I'm manually sending
I have a view for a list item that displays some basic information about a task embedded within a navigationLink. I would like to use a button within the navi
How can I limit the size of the retrieved FetchedResults when making a FetchRequest to CoreData? struct ContentView: View { var fetchRequest:FetchRequest&l
I have a number of changes to a document-based application which are not undoable (conceptually, think quiz progress) but which should dirty the document so the
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
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