HomeiOS Developmentios - SwiftUI - Set a view on the backside of a...

ios – SwiftUI – Set a view on the backside of a Scrollview


I must set a footer on the backside of my scrollview:

        VStack(spacing: dimensions.spacing300) {
            header
                .atmosphere(.mbContextTheme, .lightAlternative)
                .onTapGesture {
                    UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
                }
                .background(colours.neutralBg50
                    .edgesIgnoringSafeArea(.high))
            ScrollView {
                record
                Spacer()
                footer
                    .body(peak: .infinity, alignment: .backside)
                    .onTapGesture {
                        UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder),
                                                        to: nil,
                                                        from: nil,
                                                        for: nil)
                    }
            }
            .body(alignment: .backside)
        }

I had tried utilizing spacer(), geometryreader… Utilizing geometry reader the footer goes to the underside however the spacer turns into too excessive. I want that the footer retains simply on the backside border of the display.

Thanks!!!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments