iOS Question Switch.TintColor not work in iPhone-X

D

Deleted member 103

Guest
Hi,

the switch looks different in iPhone-X than in iPhone 6+.
Is there a way to fix the error?

B4X:
Switch1.TintColor = colors.Black

iPhone 6+ screenshot:
1606401198227.png


iPhone-X screenshot:
1606401246668.png
 
D

Deleted member 103

Guest
Set the width to 52, height to 21, border width to 1 and corner radius to 15.
Thank you Erel!
It's almost perfect, ;) but I get a better result with these values:
width = 52
height = 31
Switch1.SetBorder(1, colors.black, 15)
 
Upvote 0
Top