Saturday, November 21, 2026
HomeiOS Developmentios - SwiftUI: Button with picture bought grey border in actual iPhone...

ios – SwiftUI: Button with picture bought grey border in actual iPhone however works nice on simulation mode

[ad_1]

I am making an attempt to make easy app, the app appears working nicely on simulation mode, however after I check on my iPhone it the button seems to be completely different with simulation iPhone,

enter picture description right here

that is the what I see on the simulation however actual iPhone seems to be right here

enter picture description right here

The button picture made on sub View struct and known as as a Button picture, so I attempted borderlessbuttonstyle, again and fore floor colour match each tremendous view, and baby view each views. I bought nothing, right here the code

Button{
            pageControl.pageNum = 1
            pageControl.detailPage = 0
            print("button pressed pageNum: (pageControl.pageNum), startPage (pageControl.detailPage)")
        } label: {
            mainListRow(actuator: actuators[0])
                .background(.white)
                
        }
        .buttonStyle(BorderlessButtonStyle())
        .foregroundColor(.white)
        

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments