-
Notifications
You must be signed in to change notification settings - Fork 528
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
Make LayoutProxy functions not internal? #277
Comments
Which functions are you thinking of making public and what extension are you thinking of adding to I did not expose those functions because it means that people would have access to an API that would not be meaningful to them externally. PS: if you are thinking of being capable of constraining view controllers, I've been thinking of a similar idea, creating a layout proxy that would not be positionable but would instead offer properties as |
We have a two extensions that I added in my fork that we use extensively throughout our code. Here is an example of the usage:
The |
Hmm, I'm thinking of avoiding this in What you do basically exposes to runtime errors, as the edges on each side have to match the edges on the other side otherwise we would have a fatal error. I kinda wanna avoid this type of things, plus I feel it's not semantically representative. One option maybe is creating an |
Yeah. Type safety is a good thing. I'd love a way to use the shortened syntax for anchoring multiple edges while still having it be type safe. But there will be a lot of permutations if there is a separate type for top, bottom, leading, trailing, etc. Are you sure you need that many types? Wouldn't just two types ( |
Hey there. I love Cartography!
But, I'm trying to add some extensions to
LayoutProxy
, and I'm running into trouble because all the functions areinternal
.Any chance you'd be open to making them public?
The text was updated successfully, but these errors were encountered: