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
Reply to Xcode bug in SwiftUI previews when using Core Data
Yeah that's dirty little bug in the template. Not sure what its creator was thinking.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Xcode Error 254 When Running Linux Executable File
if it was built for Linux run it on Linux.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Using JSON file populate list to different views
See the Apple Fruta example project.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to How to make this scrollable view without disturbing the below text which stays there and I can scroll the images one above other.
VStack { ScrollView { //All of the UI content that should scroll } Pager { ... } Text("The Content outside of the ScrollView stays fixed") }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
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:
Replies
Boosts
Views
Activity
Jan ’22
Reply to React Native app doesn't load on IOS versions 11 and 12
Please take this question to the React Native Github Issues for answers.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Where do I get the official apple logo files?
Because there isn't any.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Why does the computation time for boundingRect of NSAttributedString become significantly longer in iOS15.2?
Is this on a background thread or a main thread.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Hybrid iOS app is not showing up auth-Prompt screen for New Kerberos SSO - credential based auth challenge.
That is an issue you'll have to raise with the Cordova github repo.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Automate the Install of Xcode Command Line Tools
somethings just require human oversight.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Jan ’22
Reply to LayoutConstraints error from NavigationView with navigationTitle
Xcode 13.2.1 and we still have the issue When the iPhone is in the landscape orientation.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
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:
Replies
Boosts
Views
Activity
Jan ’22
Reply to Installing font system wide
I regret to inform you this is not possible. You're limited to everything within the app sandbox and codebase resources.
Replies
Boosts
Views
Activity
Jan ’22