ok the certificate was revoked and replaced somehow so just make a new certificate and that will fix it.
Post
Replies
Boosts
Views
Activity
Yes, all of those steps are accurate,
For the workflow in step 3
I would press the distribute app button, custom, export app, select a location, then zip the folder, and send that zip file to my testers.
I found that the solution to this problem would be to dismiss and re-open the ContentView
hello?
@DTS Engineer @Claude31
Hi again,
Since my project is going to be open readible the link can be found here: https://github.com/SunnyFloppyDiskStudios/FlopFlagger
Most relevant files are ContentView and AddFlagView
@Claude31
The ForEach is as follows (sorry about formatting):
VStack {
ForEach(Array(flags.keys), id: \.self) { flag in
HStack {
Spacer()
Button("Delete") {
print("delete \(flag)")
}.padding()
Toggle(isOn: $isActiveToggleOn) {}.padding().onChange(of: isActiveToggleOn) {
if isActiveToggleOn {
print("activate \(flag)")
} else {
print("deactivate \(flag)")
}
}
Spacer()
Text(flag).padding()
Spacer()
Text(flag).padding()
Spacer()
}
}
}
what do you expect to get ?
display text per child: where are the children defined ?
where and how do you add flags ?
I wanted the ForEach loop to update every time I added a value. What @B347 told me was helpful because I was able to reduce the amount of incorrect "hey"s added to my view, however did not solve the issue.
The children are defined in the same place you add flags. There's a seperate window which opens that allows users to enter flags and values (this works properly). This is a seperate file within the app, however the flags dictionary can be accessed from other files.
An advice: study an Apple tutorial on Swift and SwiftUI. It seems there are some basics you are still missing.
I have covered the basics many times, I would not call this basic however what I learnt may differ from what you did.
Thank you for your response,
The "hey" constant was intended behaviour, and I tried your answer.
I noticed that it did indeed put the flag and only the flag in the view with no extra iterations, however it didn't update (what I wanted).
Also I was wondering how to get the flag value in the ForEach (there is no flag.value)
This was very helpful though!
If it works properly on the device you want it on, then its most likely ok.
Since it is a Swift Playground, you may have to work on converting it into an Xcode App Project before you submit to the App Store.
It should be fine. I once denied it from modifying my applications but everything still works. In a future update you may be notified to allow access.
From now on, allow access to prevent problems which could occur in the future.
Hope this helps