HomeiOS Developmentios - SwiftUI container relative form utilization

ios – SwiftUI container relative form utilization


struct testwidgetEntryView : View {
    var entry: Supplier.Entry

    var physique: some View {
        HStack {
            ZStack {
                ContainerRelativeShape()
                    .fill(.yellow)
                VStack {
                    HStack {
                        Spacer(minLength: 100)
                        ContainerRelativeShape()
                            .fill(.blue)
                    }
                    HStack {
                        Spacer(minLength: 100)
                        ContainerRelativeShape()
                            .fill(.blue)
                    }
                    HStack {
                        Spacer(minLength: 100)
                        ContainerRelativeShape()
                            .fill(.blue)
                    }
                }
            }
            ZStack {
                ContainerRelativeShape()
                    .fill(.yellow)
            }
        }
        
    }
}

the second blue view has no nook radius

Is there a strategy to make the second blue view has the identical nook radius with the opposite two by utilizing the container relative form? Or there’s another methods to realize the identical consequence?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments