swiftui alert 'navigationBarLeading' is unavailable in macOS

Asked 1 years ago, Updated 1 years ago, 343 views

When I try to add a bar item in swiftui, I get the following alert:

 'navigationBarLeading' is unavailable in macOS

I thought it was an update, but it didn't go away.
Is the bar item marked differently?

swift swiftui

2022-11-09 21:43

1 Answers

macOS does not support navigationBarLeading.
Just use navigaiton or something like that

https://developer.apple.com/documentation/swiftui/toolbaritemplacement


2022-11-09 22:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.