Post not yet marked as solved
hello! I have the latest developers version of iOS 17 and I am trying to create a custom plan in the fitness app but it will not allow me to click the "create plan" button at the very last page of that process. everything else seems to be working fine but I was able to see people like iJustine and people being able to make it so I'm wondering how they were able to do it. Ive tried restarting my phone, checking for the latest updates but nothing has worked. If you can help me, that would be great!
Hello everyone! I hope you are all having an amazing day. I have Xcode 15 and I was wondering if apple removed storyboard from everyone or if it's just me. I am very used to using storyboard instead of SwiftUI and would would like to experiment around with storyboard. I am aware that you can open storyboard projects that have been made in previous versions of Xcode but it's kind of clunky and is harder than being able to make a project. If anyone could help me, that would be great! thanks!
Hello! i was wondering how to add an if statement in an if statement. Here is my code:
At the top:
buttonPressed = true;
Below override func
if buttonPressed {
Text.isHidden = false;
buttonPressed = false;
print("Text is now visible!")
print("button has been pressed 1 time!")
if buttonPressed {
Text2.isHidden = false;
print("button has been pressed 2 times!")
}
Thanks!
I was wondering how i could have 2 functions work from 1 button. One would happen on the first time you click and second will happen the second time you click.
in java something like this:
if button pressed{
// Code
if button pressed{
// Code
}
}
or at least that's how I was taught in java.
so I'm wondering how I could do that in swift. Thanks!
hello! i was wondering how i can get a UItext invisible, but when a button is pressed, it will show up or be invisible.