Thank You! I will try that
Post
Replies
Boosts
Views
Activity
I mean how I can create a script with a command in the script. That I say in the code to create a new file
I want the program to check at Start whether a Swift file already exists and if not, the code should create a script and write a few things it.
Otherwise, is it possible to create a text file local on the device and write the data in and then retrieve it in the code?
I started developing a game with Firebase and Firebase database. If the app should start if such a Swift file does not already exist, a user will be created. Then a Swift file is created by notifying the randomly generated email address. If the app is then restarted, the code should recognise that the file exists and log in with the email address noted there. Then the variables can be read out of the database.
How can I check that?
Thank you!
In the function loadImage in struct AppView
@OOPer In the function loadImage in struct AppView
I changed it to a String because I want to save the name of the picture in the UserDefaults. Is there a way to do that?
Hi, I did what you said me and when I want to add the "inputImage" to the "listItems" Array, I get the error: Cannot convert value of type 'Image?' to expected argument type 'String'. Do I have to change the "image" in the struct "Item" to Data?:
struct Item : Identifiable, Codable{
var id = UUID()
var name : String
var birthday : String
var image : String
}
I want to store the Image so that I can load the Image later
Hi I converted the image to URL and I get this error when I want to give the URL to AddView, I get the error:
Cannot convert value of type 'Binding<URL>' to expected argument type 'Binding<URL?>'
what can I do there?
Hi thank you for your help but the Url i get is "Optional(./ -- file:///)". Do you need some of my code to see what I have to do ?
Hi I have the array sorted but I want it like the Contacts app on the iPhone, so that all Strings, whose first letter is "a", are in the Section "A" and so on. Do you understand what I mean?