I study SwiftUI.
Trying out of this:
Do it:
How to add the title correctly in this case?
code:
struct CalculatorView: View { var body: some View { .navigationBarTitle("Оформить займ") .navigationBarBackButtonHidden(true) .navigationBarItems(leading: CustomBackButton { presentationMode.wrappedValue.dismiss() }) } }
When you set your title, you can also specify a displayMode:
.navigationBarTitle("Title", displayMode: .inline)
1.4m articles
1.4m replys
5 comments
56.9k users