Unable to click item inside custom app bar

Unable to click item inside custom app bar

Questions : Unable to click item inside custom app bar

594

I have a custom app bar inside my app but in4codes_swiftui after the ios 15 update i can’t click in4codes_swiftui anything inside it. I tried almost in4codes_swiftui everything and nothing works. I don’t know in4codes_swiftui why, but on ios 15 my app is not usable at in4codes_swiftui all due to changes that apple make.

Please help me because i need to update my in4codes_swiftui app as soon as possible otherwise i will in4codes_swiftui loose all of my users

(I’m beginner on ios development)

My Custom App bar view:

struct appBar: View { @Binding var index: Int @State var showGoalTipsScreen = false var body: some View { VStack(spacing: 25) { HStack { Text("My Goals") .fontWeight(.bold) .font(.title) .foregroundColor(.white) Spacer(minLength: 0) Button(action: { showGoalTipsScreen = true }) { Text("Add New Goal") .foregroundColor(.white) Image("addIcon") .resizable() .frame(width: 18, height: 18) .foregroundColor(.white) } } HStack { Button(action: { self.index = 0 }, label: { VStack { Text("Active") .foregroundColor(.white) .fontWeight(self.index == 0 ? .bold : .none) Capsule().fill(self.index == 0 ? Color.white : Color.clear) .frame(height: 4) } }) Button(action: { self.index = 1 }, label: { VStack { Text("Completed") .foregroundColor(.white) .fontWeight(self.index == 1 ? .bold : .none) Capsule().fill(self.index == 1 ? Color.white : Color.clear) .frame(height: 4) } }) Button(action: { self.index = 2 }, label: { VStack { Text("Shared") .foregroundColor(.white) .fontWeight(self.index == 2 ? .bold : .none) Capsule().fill(self.index == 2 ? Color.white : Color.clear) .frame(height: 4) } }) NavigationLink("", destination: GoalTipsView().navigationBarHidden(true), isActive: $showGoalTipsScreen) }.padding(.bottom, 10) } .padding(.horizontal) .padding(.top, (UIApplication.shared.windows.first?.safeAreaInsets.top)! + 10) .background(RoundedCorners(tl: 0, tr: 0, bl: 13, br: 13).fill(Color.blue)) } } 

Total Answers 0