Comments (2)
What is required is to respond to traitCollectionDidChange, and ensure the corner radius is set via the method .setCornerRadius plus determining the trait class you are responding to. Then all is good.
from simplebutton.
Hi, thanks for pointing this out! I don´t have a lot of experience with UITraitCollection´s, but as a first step, you can always subclass SimpleButton and add there traitCollectionDidChange support. Hopefully I find some time to look into it in more detail soon.
from simplebutton.
Related Issues (14)
- 2.1 requires 8.1 HOT 1
- SimpleButton doesn't call `configureButtonStyles` when used in InterfaceBuilder
- Selected state shows an extra background box HOT 2
- cocoapods still points to 2.1 HOT 1
- Need install from CocoaPods HOT 1
- Specs satisfying the `SimpleButton (~> 2.1)` dependency were found, but they required a higher minimum deployment target. HOT 1
- Release 3.0 HOT 1
- Please update version on Cocoapods HOT 2
- Please update version on Cocoapods
- Button doesn't use .Normal attributes in .Disabled state when they're not explicitly set
- Borders don't update when dark/light mode changes
- Release 2.1 HOT 1
- translatesAutoresizingMaskIntoConstraints = false break button's frame HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simplebutton.