var body: some View {
NavigationView{
ZStack(alignment: .leading){
ZStack(alignment: .top){
VStack{
HStack(alignment: .top) {
Image(systemName: "chevron.left")
.font(.title2)
Text("profile")
.fontWeight(.bold)
Spacer()
Button(action: {
}) {
Image(systemName: "person.crop.circle.fill.badge.plus")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(height: 24)
Text("subscribe")
Button(action: {
}) {
Image("share_black_24dp")
.tint(Color.white)
.foregroundColor(Color.white)
}
}
.foregroundColor(Color.white)
}
.frame(width: UIScreen.main.bounds.width - 20, height: 40)
.padding(.horizontal, 20)
.background(Color.teal)
}
// .navigationBarItems(leading: backButton)
ScrollView(.vertical, showsIndicators: false){
}
}
}
.navigationBarTitle("")
.navigationBarHidden(true)
.navigationBarBackButtonHidden(true)
}
}
where does
.navigationBarTitle("")
.navigationBarHidden(true)
.navigationBarBackButtonHidden(true)
need to be!?
I also tried it for NavigationView and it doesn't work