Skip to main content
0 votes
1 answer
120 views

I have the main app that saves preferences to UserDefaults.standard. So I have this one preference that the user is able to toggle - isRawOn UserDefaults.standard.set(self.isRawOn, forKey: "...
Gizmodo's user avatar
  • 3,024
0 votes
2 answers
77 views

This is my code: class WeatherFeatures: UIViewController, UITextViewDelegate, WeatherManagerDelegate { let date1ForTableView = UserDefaults.standard let low1ForTableView = UserDefaults....
Train Lover's user avatar
0 votes
1 answer
72 views

I'm currently working on a Swift project where I register default values to two different UserDefaults suites: the standard suite and a custom suite. However, I'm seeing an unexpected (potentially ...
markb's user avatar
  • 1,381
0 votes
1 answer
241 views

Background I'm developing a macOS applications that consists of a plugin and main application. I would like for both targets to be able to share the same settings. I want to manipulate my settings ...
Konrad's user avatar
  • 18.8k
0 votes
1 answer
158 views

Is there any API available to Swift that provides the name (which should be an email address, AFAIK) of the Apple ID associated with the current macOS user? The following command line seems to provide ...
XDR's user avatar
  • 4,580
1 vote
1 answer
142 views

I have written code below in Swift 5.10 to store and retrieve Codable data from UserDefaults by giving key value in the subscript, but there is some compile time error: Expected '->' for subscript ...
Manthan Gevariya's user avatar
0 votes
0 answers
86 views

i want to create an app that allows the user to edit user defaults which makes it free to silence the annoying update warnings but I have ran into an issue. The code should take a string and print a ...
Karl Ehrlich's user avatar
0 votes
0 answers
171 views

I've learned that it's possible to inject new configuration to MDM managed application using MDM so that the managed app configuration changes that are pushed down from an MDM server appear in ...
Zohar81's user avatar
  • 5,214
0 votes
0 answers
63 views

This is my User struct. struct User: Codable { let uid: String? let name: String? var profileImageUrl: String? var bookmarkedRecipes: [String]? // This could be an array of recipe IDs....
asduskun's user avatar
0 votes
1 answer
94 views

I am trying to share data between an objective c iOS appliation and a c# xamarin forms application using app groups. I am setting up the initial data in the objective c project and passing the data ...
redrock68's user avatar
0 votes
0 answers
72 views

I want to make variable user @Published, but then i get error: 'nil' is not compatible with expected argument type 'Published<UserLoginOutput.Response.Data? import Foundation protocol ...
Aidar's user avatar
  • 9
3 votes
2 answers
2k views

works good on iOS 16 and prior, but on iOS 17, User Defaults gets cleared. I don't use Data Protection Entitlement. I use app groups, and tried both UserDefaults.standard and UserDefaults(suiteName:&...
batrinu vlad's user avatar
1 vote
1 answer
485 views

I can successfully override the UserDefaults value by setting it with XCUIApplication.launchArguments. But based on this link and the behavior I've noticed, once I override the UserDefaults value all ...
Kay's user avatar
  • 11
0 votes
0 answers
78 views

the project is like this, i have a button of adding a movie into Favorited Movies page, and the user can delete the movie (.onDelete). but, the thing here is that whenever i delete the Movie from ...
Abdelkarim Achtaou's user avatar
0 votes
1 answer
145 views

I am currently working on app which has been there since last few years. In the app, there is some cache stored as UserDefaults whose keys have now been removed from the code. So i want to clear those ...
Arav Khandelwal's user avatar

15 30 50 per page
1
2 3 4 5
252