Post

Replies

Boosts

Views

Activity

Reply to Why is the Button not working? SwiftUI
try the following, It gets rid of the layout constraint issues and shows the My Text Label, using an EmptyView as the destination and the help button in the navbar. There is a certain view hierarchy that must be kept to avoid layout issues. struct ContentView: View {     @State var selection: String?     let id = "1"     var body: some View {         test     }     var test: some View {         NavigationView {             NavigationLink(tag: id, selection: $selection) {                 EmptyView()                     .navigationTitle("Welcome")             } label: {                 Text("My Test")             }             .toolbar {                 Button("Help") {                     print("Help tapped!")                 }             }         }     } Example two without the NavigationLink struct ContentView: View {     var body: some View {         nonavLink     }     var nonavLink: some View {         NavigationView {             Text("My Test")             .toolbar {                 Button("Help") {                     print("Help tapped!")                 }             }         }         .navigationTitle("Welcome")     } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22
Reply to iPhone Orientation Impacting Tab View within a Navigation View
This is the order. The NavigationView encapsulates each Primary view of the tab view item. The TabView encapsulates all of the NavigationViews TabView {                 NavigationView { TabAView()                 }                 .tabItem {                     Label {                         Label("Tab A", systemImage: "house.circle.fill")                     } icon: {                         Image(systemName: "clock")                     }                 }                 .tag(Tabs.taba)                 NavigationView { TabBView()                 }                 .tabItem {                     Label {                         Label("Tab B", systemImage: "house.circle.fill")                     } icon: {                         Image(systemName: "clock")                     }                 }                 .tag(Tabs.tabb) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22
Reply to App Store Review Guidelines 5.1.1 (ix) - Account delete requirement for banking apps
Someone in Apple certainly doesn’t understand how banking institutions function! I think there should be push back on this from banks because any solution is going result is a call to a call center that is going to go no where when someone has a mortgage, and other owed balances and this nonsense of giving the customer the illusion they can just delete their account was not planned out properly by Apple.
Topic: Privacy & Security SubTopic: General Tags:
Jan ’22
Reply to Apple Sign In Button does not work properly
The following and your code above works perfectly fine on a real device, not the simulator:         VStack {             SignInWithAppleButton(.continue) { request in                 request.requestedScopes = [.email, .fullName]             } onCompletion: { result in                 switch result {                 case .success(let auth):                     guard let credential = auth.credential as? ASAuthorizationAppleIDCredential,                     let email = credential.email else { return }                     print("\(email)")                 case .failure(let error):                     print(error.localizedDescription)                 }             }         }.frame(width: 80, height: 28, alignment: .center)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22