Home > Net >  UIButton has strange unexpected bakground color on different device
UIButton has strange unexpected bakground color on different device

Time:04-04

I've recently been building an app under iOS 15 (latest as of writing this code), and when I shipped a version of my app to test flight, one of my users sent me a video of the app working, and I noticed, all of my buttons have this strange background highlight effect. Is this some sort of accessibility mode? I've never seen this happen before. In included some screenshots below and the interface builder, there are no custom classes associated to this UIButton. And ALL of the buttons have this effect happening to them.

This other device has a strange background color attached: This other device has a strange background color attached.

But this is how its designed and how it shows up on my device and the simulator: But this is how its designed and how it shows up on my device and the simulator

Here is a screenshot from Interface Builder: Here is a screenshot from Interface Builder

CodePudding user response:

I had a similar problem.

Change the style to default. And then instead of the tint color, choose the text color. The background can remain default.. and is therefore transparency.

Tested, works.

Example

CodePudding user response:

Turns out my user had something in iOS accessibility settings turned on, called "Button Shapes". I had no idea...

  • Related