iOS/SwiftUI
[SwiftUI] .toolbar를 통해 NavigationLink 동작 시키기
SeokBA
2021. 3. 20. 13:00
(Toolbar는 NavigationView 안에 있지 않기 때문에, .toobar 내에 NavigationLink를 가진 ToolbarItem를 삽입하는 방식은 동작이 되지 않음.)
SwiftUI ToolbarItem doesn't present a View from a NavigationLink
I don't know if this is a bug or I am doing something wrong here. I've added a new button on the Navigation bar that would present a new view. struct MyView: View { @ObservedObject var viewMod...
stackoverflow.com