Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

[Layout] Improve Layout System Abstraction#2938

Closed
maicki wants to merge 18 commits intofacebookarchive:masterfrom
maicki:MSImproveLayoutAbstraction
Closed

[Layout] Improve Layout System Abstraction#2938
maicki wants to merge 18 commits intofacebookarchive:masterfrom
maicki:MSImproveLayoutAbstraction

Conversation

@maicki
Copy link
Copy Markdown
Contributor

@maicki maicki commented Jan 27, 2017

Currently our layout system is pretty coupled to the overall ASDK system. This PR is the first step to loosen up this coupling.

For now it:

  1. Cleans up the protocol situation around ASLayoutElement.
  2. Removes the dependency on ASEnvironment and introduces trait collection support that would allow us to more easier compile out in certain cases.
  3. Move ASLayoutElementStyleExtensions out from ASEnvironment

TODO:

  • Move ASLayoutElementTraitCollection related code to ASTraitCollection
  • Locking situation for layout element extensions in _extensions
  • Reenable logging in ASLayoutElement
  • Re-add removed ASEnvironmentTraitCollection as deprecated


if (CGPointEqualToPoint(self.layoutPosition, defaultState.layoutPosition) == NO) {
[result addObject:@{ @"layoutPosition" : [NSValue valueWithCGPoint:self.layoutPosition] }];
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This needs to be reenabled.

@maicki
Copy link
Copy Markdown
Contributor Author

maicki commented Jan 28, 2017

Replaced by #2941

@maicki maicki closed this Jan 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants