ios – Learn how to add textual content on button with Picture


enter picture description right here

I am having hassle including textual content to the underside of a button. Every time the inscription is within the heart and I’ve to have it on the backside as within the image

`

struct Main_view: View {
    var physique: some View {
        ZStack{
            Shade(App_Color.background_color)
                .edgesIgnoringSafeArea(.all)
            //ZStack{
                Button (motion: {})
                {
                    VStack{
                        ZStack{
                            VStack{
                                Picture("Picture")
                                    .resizable()
                                    .body(width: 120, peak: 120)
                                    .cornerRadius(30)
                                Textual content("ZWIERZĘTA")
                                    .foregroundColor(Shade.orange)
                                    .daring()
                                    .padding(-30)
                                    //.font(.customized("AmaticSC-Common", dimension: 15))
                            }
                            
                        }
                    }
                }
            //}
        }
    }
}

enter picture description right here`

Solely the way it works after I give .padding(-30). is there any resolution to this drawback?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles