Post

Replies

Boosts

Views

Activity

Launch screen xcode 13 beta
Im using xcode 13 beta and im trying to implement a launch screen into my app. Info.plist doesnt exist anymore, and the project did generate a launchscreen storyboard file, but im not sure how to integrate it? And the rest of my app is being written in swift so i dont know if i can cross the two. In the general settings i can select the storyboard launch screen file to run on startup, but im interested to see if theres a way i can integrate a swift file screen programatically? Thanks!
1
0
553
Oct ’21
link login screen to home view
Hello developers, I am making an app with a login screen where the user enters a username password. I have everything set up to display a incorrect password and login successful message when they type their information, but now i need to link the next screen to the login screen, so that when the correct info is entered, they are taken to the next screen. any tips on how to structure this? thank you. Note: Im using Xcode 13 beta.
1
0
402
Oct ’21
make login button a NavigationLink
Im trying to make my login button a navigation link to take me to the next view, but I think Im calling my function wrong. My code is below. Im trying to link the page WarehouseView to a successful login, for now just showing text WarehouseView. Ive declared all my @State variables, and my login button worked just fine before I added the navigation link. Im getting a "expected expression" message on the last two .self lines. Thank you. NavigationView{ NavigationLink(destination: Text("WarehouseView"), isActive: $isshowingWarehouseView){} Button(action:{ if self.username == storedusername && self.password == storedpassword { self.authenticationdidsucceed = true; self.authenticationdidfail = false;, self.isshowingWarehouseView = true } else {self.authenticationdidfail = true} }){ LoginButton()
1
0
1.3k
Oct ’21
Launch screen xcode 13 beta
Im using xcode 13 beta and im trying to implement a launch screen into my app. Info.plist doesnt exist anymore, and the project did generate a launchscreen storyboard file, but im not sure how to integrate it? And the rest of my app is being written in swift so i dont know if i can cross the two. In the general settings i can select the storyboard launch screen file to run on startup, but im interested to see if theres a way i can integrate a swift file screen programatically? Thanks!
Replies
1
Boosts
0
Views
553
Activity
Oct ’21
link login screen to home view
Hello developers, I am making an app with a login screen where the user enters a username password. I have everything set up to display a incorrect password and login successful message when they type their information, but now i need to link the next screen to the login screen, so that when the correct info is entered, they are taken to the next screen. any tips on how to structure this? thank you. Note: Im using Xcode 13 beta.
Replies
1
Boosts
0
Views
402
Activity
Oct ’21
make login button a NavigationLink
Im trying to make my login button a navigation link to take me to the next view, but I think Im calling my function wrong. My code is below. Im trying to link the page WarehouseView to a successful login, for now just showing text WarehouseView. Ive declared all my @State variables, and my login button worked just fine before I added the navigation link. Im getting a "expected expression" message on the last two .self lines. Thank you. NavigationView{ NavigationLink(destination: Text("WarehouseView"), isActive: $isshowingWarehouseView){} Button(action:{ if self.username == storedusername && self.password == storedpassword { self.authenticationdidsucceed = true; self.authenticationdidfail = false;, self.isshowingWarehouseView = true } else {self.authenticationdidfail = true} }){ LoginButton()
Replies
1
Boosts
0
Views
1.3k
Activity
Oct ’21