0

I notice when i use an overlay on a rounded rectangle that there are some parts that are not overlayed, or maybe i'm doing it wrong

enter image description here and then i tried to switch the view to a regular Iphone SE display, and i notice something that i really dislike, the top is not convered by red

Is there a way to fix it?? or any keyword for me to search? cuz there's probably someone with the same question as i am

Thanks

RoundedRectangle(cornerRadius:25)
                    .frame(height: 350, alignment:.center)
                    .foregroundColor(Color("Kolor1"))
                    .overlay(
                        ZStack {
                            Text("Makan")
                            HStack {
                                Spacer().frame(width:80)
                                VStack {
                                    Spacer()
                                    Image("Labtek")
                                        .resizable()
                                        .aspectRatio(contentMode: .fit)
                                        .frame(width: 360, height: 260, alignment:.center)
                                }
                            }
                        }
                    )
                    .edgesIgnoringSafeArea(.top)
Farhandika
  • 437
  • 1
  • 3
  • 16
  • I see no issue in SwiftUI codes and result, it should be like that. you just expected wrong result. – ios coder Mar 08 '21 at 10:13
  • Does this answer your question https://stackoverflow.com/a/61701079/12299030? Or this https://stackoverflow.com/a/62774757/12299030? Or this https://stackoverflow.com/a/62040898/12299030? – Asperi Mar 08 '21 at 10:27

0 Answers0