python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Storing Units in @AppStorage
I need to store a user's chosen selection of 11 different measurement units in AppStorage.
Ideally something equivalent to:
@AppStorage("shortDistance") var shortDistance: UnitLength = .met...
MarkCX
Votes: 0
Answers: 0
@AppStorage property wrapper prevents from dismissing views
I have an app with four (4) views, on the first view I'm showing a list of cars pulled from CoreData, the second view is presented when a car is tapped and it shows the services for each car. The thir...
fs_tigre
Votes: 0
Answers: 1
What is causing a Swift UserDefault to not be set until the 2nd try?
I am trying to let the user control settings for camera hardware so there is a Settings view and a different view where they can choose presets to apply by the click of a button. When navigating back ...
graemek
Votes: 0
Answers: 0
Swift/SwiftUI – Pass array to another view
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 each player and as soon as you hit return the name ge...
qvirinmarinvs
Votes: 0
Answers: 1