Closed ScottRobbins closed 5 years ago
I should also consider adding an assert or a log when people pass in activated constraints explaining it's a bad idea.
Since this issue is about updating documentation, there should be a shorter examples in the README. Also consider removing blank lines if that makes it easier to read. I think how much is in the examples distracts from the summary of why you'd lose the library. There are full examples in the repo to give a more complete view of how the library would be used.
Should also better emphasize the declarative part of the library. Right now it's in. text but it should probably be highlighted by a bolder title or something like that.
I think i should change the quickstart VC to be simple but display the declarative layout better. Maybe rename it from quickstart VC. Really the registration examples are the best place to see how to use the framework.
should add links to section of readme at top
I should also consider adding an assert or a log when people pass in activated constraints explaining it's a bad idea.
I'm not going to do this since I can't rely on #if DEBUG
directives, and it would probably affect performance to check that property on every constraint passed in.
done
The framework expects all constraints passed to "activate" to be unactivated. The README should point this out, as many autolayout DSLs by default will activate constraints.