Skip to content

[RTL] Bridge the UISemanticContentAttribute property for more convenient RTL support.#60

Merged
appleguy merged 1 commit into
masterfrom
SemanticContent
Apr 25, 2017
Merged

[RTL] Bridge the UISemanticContentAttribute property for more convenient RTL support.#60
appleguy merged 1 commit into
masterfrom
SemanticContent

Conversation

@appleguy

@appleguy appleguy commented Apr 23, 2017

Copy link
Copy Markdown
Member

Although apps could handle this before by setting the view's property in didLoad, it's
useful to bridge this property for setting during off-main initialization.

This change is required in order to finalize and land https://github.com/TextureGroup/Texture/pull/59/files - or otherwise I can do a followup PR to merge the small amount of code in +UIViewBridge that gives an opportunity to update other state when this attribute changes.

…ent RTL support.

Although apps could handle this before by setting the view's property in didLoad, it's
useful to bridge this property for setting during off-main initialization.

This change also makes RTL fully functional / automatic for Yoga layout users.
@property (nonatomic, assign) CGRect bounds;
@property (nonatomic, assign) CGRect frame; // Only for use with nodes wrapping synchronous views
@property (nonatomic, assign) UIViewContentMode contentMode;
@property (nonatomic, assign) BOOL clipsToBounds;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were re-indented, because they had actually included tab characters as well as spaces (making it impossible to line up on GitHub even though it did in Xcode)

@ghost

ghost commented Apr 24, 2017

Copy link
Copy Markdown
1 Error
🚫 Any source code changes should have an entry in CHANGELOG.md or have #trivial in their title.

Generated by 🚫 Danger

@appleguy

Copy link
Copy Markdown
Member Author

Thanks for the super-quick review, @maicki :)

@appleguy
appleguy merged commit 09ad3b7 into master Apr 25, 2017
@appleguy
appleguy deleted the SemanticContent branch April 25, 2017 03:08
maicki pushed a commit that referenced this pull request Apr 27, 2017
…#59)

* [Yoga Beta] Improvements to the experimental support for Yoga layout.

Yoga remains an unsupported / speculative feature, but these improvements are important for
the functionality of clients that are experimenting with it.

For example, without these changes, ASButtonNode is not able to lay out correctly. These
changes allow certain subtrees that use layout specs to coexist properly in a Yoga heirarchy.

The most significant change here is moving ASEdgeInsets into the #if YOGA gating. Although
this is technically an API change, this type was added with no known use cases and is
really only useful for flexbox layout specification. So, before usages of it are created,
it makes sense to constrain the Texture API surface until that time.

* [RTL] Bridge the UISemanticContentAttribute property for more convenient RTL support.

Although apps could handle this before by setting the view's property in didLoad, it's
useful to bridge this property for setting during off-main initialization.

This change also makes RTL fully functional / automatic for Yoga layout users.

* Remove RTL property addition and depend on PR #60 landing first.

* Fix warnings

* Add line to changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants