Post

Replies

Boosts

Views

Activity

Reply to NavigationTitle placement changed in watchOS
Is there an approved way to get a page title in the upper left area of the display? I tried putting text in a toolbar, but the text briefly appears and then goes away. Inside my TabView, I have... SettingsView(showFinish: true) .tag(Tab.settings) .toolbar { ToolbarItemGroup(placement: .topBarLeading) { Text("Settings") .font(.subheadline) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
Reply to NSInternalInconsistencyException in thread with no app code
Thanks for the tip. That's exactly what I'm doing, and I just found the documentation that warns against this. On this page, it says: A navigation controller automatically assigns itself as the delegate of its navigation bar object. Therefore, when using a navigation controller, don’t assign a custom delegate object to the corresponding navigation bar. There are places where I need to pop multiple levels off the nav bar stack, so I was pointing the delegate at my view controller and implementing shouldPopItem to add an extra "pop" where needed. I'll have to figure out a different way to achieve this.
Topic: UI Frameworks SubTopic: UIKit Tags:
Nov ’21
Reply to Complication works on watch, but not visible in watch app on phone
Thanks - I switched to a WidgetKit implementation and got it working pretty quickly. Only about 10% of my Apple Watch users are still on watchOS 8.5, so I decided it would be okay if that small (and shrinking) group didn't get a complication.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’24
Reply to NavigationTitle placement changed in watchOS
Is there an approved way to get a page title in the upper left area of the display? I tried putting text in a toolbar, but the text briefly appears and then goes away. Inside my TabView, I have... SettingsView(showFinish: true) .tag(Tab.settings) .toolbar { ToolbarItemGroup(placement: .topBarLeading) { Text("Settings") .font(.subheadline) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’24
Reply to NSInternalInconsistencyException in thread with no app code
Thanks for the tip. That's exactly what I'm doing, and I just found the documentation that warns against this. On this page, it says: A navigation controller automatically assigns itself as the delegate of its navigation bar object. Therefore, when using a navigation controller, don’t assign a custom delegate object to the corresponding navigation bar. There are places where I need to pop multiple levels off the nav bar stack, so I was pointing the delegate at my view controller and implementing shouldPopItem to add an extra "pop" where needed. I'll have to figure out a different way to achieve this.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’21