Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING CHANGE: UIButton now uses XAML behind the scenes #1331

Closed
ArnOmsft opened this issue Nov 7, 2016 · 0 comments
Closed

BREAKING CHANGE: UIButton now uses XAML behind the scenes #1331

ArnOmsft opened this issue Nov 7, 2016 · 0 comments

Comments

@ArnOmsft
Copy link
Member

ArnOmsft commented Nov 7, 2016

With this month’s release comes a change to UIButton: we have replaced the previous custom implementation of UIButton with one that uses XAML controls behind the scenes. This change might not be fully transparent for any app that’s using the current implementation since the new implementation does not currently support some properties that were previously supported.
Here is a summary of what comes with this new implementation compared to what’s available today*:

Feature Current Implementation New Implementation
adjustsImageWhenDisabled No No
adjustsImageWhenHighlighted No No
- attributedTitle:forState No No
- backgroundImageForState: Yes Yes
- backgroundRectForBounds: No No
buttonType Yes No
+ buttonWithType: Yes Caveat
contentEdgeInsets Yes Yes
- contentRectForBounds: Yes Yes
currentAttributedTitle No No
currentBackgroundImage Yes Yes
currentImage Yes Yes
currentTitle Yes Yes
currentTitleColor Yes Yes
currentTitleShadowColor No No
font Yes Yes
imageEdgeInsets Yes Yes
- imageForState: Yes Yes
- imageRectForContentRect: Yes Yes
imageView Yes Caveat
lineBreakMode No No
reversesTitleShadowWhenHighlighted No No
- setAttributedTitle:forState No No
- setBackgroundImage:forState Yes Yes
- setImage:forState: Yes Yes
- setTitle:forState: Yes Yes
- setTitleColor:forState: Yes Yes
- setTitleShadowColor:forState: No No
showsTouchWhenHighlighted No No
tintColor No No
- titleColorForState: Yes Yes
titleEdgeInsets Yes Yes
- titleForState: Yes Yes
titleLabel Yes Caveat
- titleRectForContentRect: Yes Yes
- titleShadowColorForState: No No
titleShadowOffset No No
touchesBegan:withEvent: Yes Yes
touchesCancelled:withEvent: Yes Yes
touchesEnded:withEvent: Yes Yes
touchesMoved:withEvent: Yes Yes
* For the one marked as caveat, you can find details about what's not supported in the code itself
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant