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

BlElement: Review layout-related protocols and API #696

Open
tinchodias opened this issue Feb 12, 2025 · 2 comments
Open

BlElement: Review layout-related protocols and API #696

tinchodias opened this issue Feb 12, 2025 · 2 comments

Comments

@tinchodias
Copy link
Collaborator

tinchodias commented Feb 12, 2025

First point is about "view - configuration" protocol. We don't use the term "view", and the methods in this protocol fit well in "api - layout", where padding: and margin: are (they expose layout constraints' API) :

Image

@tinchodias
Copy link
Collaborator Author

There are other methods that expose layout constraints' API that could be in "api - layout" protocol: position, size, width, height. These methods are categorized in "api - bounds" protocol.

@tinchodias tinchodias changed the title BlElement: rename "view - configuration" protocol BlElement: Review layout-related protocols and API Feb 12, 2025
@tinchodias
Copy link
Collaborator Author

Now my analysis on "layout utilities" protocol, that has 2 methods:

  • forceLocalLayout with no senders (to be removed?)
  • forceLayout, whose comment starts with "Do no use me" but has more than 300 senders on my image (mostly from tests)

Maybe this protocol can be merged into "private - layout", as it's not designed as part of the API for users.

Image

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