ios – Padding on the high and backside utilizing uipilot framework

0
3
ios – Padding on the high and backside utilizing uipilot framework


*There’s a padding on the high and backside of the screens of the app i’m at present engaged on, i used uipilot for the navigation. I observed if i alter to ios native navigationstack, the padding disappears, the background colour of the app is purple, is that this a bug from uipilot? aside uipilot, please the place might the bug be coming from? the entire app screens have padding on the high and backside?
Kindly attend to my request, thanks.
the primary display code, splash display

struct SplashScreenView: View {
    @State var rotatingAngle: Double = 0.0
    @State var trimAmount: Double = 0.1
    @State var goOTP = false
    @Binding var isActive: Bool
    @State var goToUserType = false
    @State var goSignIn = false
    @State var goCreatePin = false
    @State var goTerms = false
    @EnvironmentObject var pilot: UIPilot
    var physique: some View {
        ZStack {
            VStack {
                ZStack {
                    HStack {
                        Picture("splash_left_upper_background")
                            .scaledToFit()
                            .place(x: 90, y: 10)
                            .padding(.backside, 40)
                    }
                    
                    HStack {
                        Picture("splash_middle_background")
                            .resizable()
                            .scaledToFit()
                            .padding(.high, -50)                        
                    }
                    
                    VStack {
                        Picture("ptb_circle")
                            .rotationEffect(.levels(-rotatingAngle))
                            .animation(.linear(length: 1.8).repeatForever(autoreverses: false), worth: rotatingAngle)
                    }
                    .onAppear{
                        self.rotatingAngle = 360.0
                        DispatchQueue.principal.asyncAfter(deadline: .now() + 3) {
                            withAnimation {
                                self.isActive = true
                            }
                        }
                    }
                    Picture("splash_right_lower_background")
                        .scaledToFit()
                        .place(x: 330, y: UIScreen.principal.bounds.peak - 130)
                }
            }
            .onAppear{
                DispatchQueue.principal
                    .asyncAfter(deadline: .now() + 2)
                {
                    
                    let resp = isActivated()
                    
                    if(resp == "Activated")
                    {
                        let resp2 = isPinCreated()
                        if(resp2 == "0")
                        {
                            self.goSignIn = true
                        }
                        else
                        {
                            self.goCreatePin = true
                        }
                    }
                    else
                    {
                        self.goToUserType = true
                    }
                }
            }
            //.navigationBarHidden(true)
            NavigationLink(vacation spot:
                            CustomerWelcomeView().navigationBarBackButtonHidden(true),
                           isActive: $goToUserType) {
                EmptyView().navigationBarBackButtonHidden(true)
            }.navigationBarBackButtonHidden(true)
            NavigationLink(vacation spot: generate_otp(), isActive: $goOTP) {
                EmptyView()
            }
            NavigationLink(vacation spot: create_pin(), isActive: $goCreatePin) {
                EmptyView()
            }
        }
        .body(maxWidth: .infinity, maxHeight: .infinity)
        .background(Colour.ptbRed)
        .navigationBarHidden(true)
    }
    func isActivated() -> String {
        var resp = ""
        if UserDefaults.commonplace.object(forKey: "Standing") != nil {
            resp = UserDefaults.commonplace.worth(forKey: "Standing") as! String
        }
        else
        {
            resp = ""
        }
        return resp
    }
    func isPinCreated() -> String {
        var resp = "";
        if UserDefaults.commonplace.object(forKey: "isCreatePin") != nil {
            resp = UserDefaults.commonplace.worth(forKey: "isCreatePin") as! String
        }
        else
        {
            resp = ""
        }
        return resp
    }
}
struct SplashScreenView_Previews: PreviewProvider {
    static var previews: some View {
        SplashScreenView(isActive: .fixed(false))
    }
}*

LEAVE A REPLY

Please enter your comment!
Please enter your name here