In the code below I ask the server for the popuplation rate for the city the user is current in via HTTP request. Everything works as expected except ...
In the code below I ask the server for the popuplation rate for the city the user is current in via HTTP request. Everything works as expected except ...
In SwiftUI, for this code to toggle the display of view: The animation will be shown if the show is the @State variable. However, I found that if ...
I am trying to change the color scheme of a sheet in SwiftUI on a button click and use @AppStorage to store the selected scheme. It works exactly two ...
The Number struct shows below: struct Number: Identifiable, Codable { var id: Int var number: Int var flag = false // var description ...
In the meantime a try to implement in app purchases in my app that is in the AppStore. So I done this with Glassfy and everything works fine. But n ...
I have a SwiftUI app that has some checkboxes to set some values to true or false using @AppStorage. I would like to remove modify some data from Core ...
I'm using @AppStorage with a String property. When changing the value of the property, the view automatically updates to reflect the change as expecte ...
I can't seem to find what I'm doing wrong. Here is the setting: bundle identifiers stored as a Set through AppStorage new bundle identifiers ad ...
I am trying to save a small amount of data with picker using AppStorage across multiple views. However the issue I'm running into is that when I selec ...
I have the following reproduced example in Swift/SwiftUI. Intended Functionality: List of numbers, where upon deletion of any number, the numbers upd ...
I have a question regarding Swift where I just can't wrap my head around. I have a quite simple view. It's a list where you write down the name of eac ...
// I am trying to pass in the value of the @AppStorage onto the class using @Binding. // Declaration of @AppStorge, this the the single source of trut ...
I'm really new to Swift and iOS apps and couldn't figure the following out. I'm trying to create a simple 5 steps rating element storing a value to t ...
Issue = View does not change after log_Status = true I am trying to take the user to a different view after the user has signed in. I have implemente ...
How to add @AppStorage variable to init() to use it as a key in @FetchRequest predicate? Here is a working example, where I filter results using pred ...
I need an optional @AppStorage String property (for a NavigationLink selection, which required optional), so I declared I need it to start with a d ...
I'm trying to get from UserDefaults a Bool whose key depends on the nameID of a Product. I tried this way: Anyway Swift throws this error: Can ...
New to SwiftUI. I want to change the string calBudget in the UserSettings view and convert it to Int in the ContentView. the first problem is the Int ...
I am trying to reload the data every .onAppear, but if I change the @AppStorage nearMeter's value in the SettingsView, it isn't updating the value in ...
Is it possible to save an MKCoordinateRegion Value in @App Storage? I tried this. But it doesn't work. I got the error 'No exact matches in call to in ...