Reputation: 147
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()
})
}
}
Upvotes: 0
Views: 54
Reputation: 1320
When you set your title, you can also specify a displayMode:
.navigationBarTitle("Title", displayMode: .inline)
Upvotes: 2