mirror of https://github.com/SnapKit/SnapKit
855 B
855 B
SnapKit 3.0 Migration Guide
SnapKit 3.0 has many breaking changes from earlier versions. You can read the notes on releases for more details.
- Upgrade SnapKit installation
- Find all
snp_
and replace withsnp.
- Find all
equalTo(UIEdgeInsets)
and ensure any right or bottom inset values are no longer inverted - Build and fix deprecated APIs
- Test every screen of UI to ensure visual compatibility
If you find any issues with migration please open an issue.
Known Quirks
make.center.equalTo(0)
now positions a view at 0,0 in it's superview rather than the center, usemake.center.equalToSuperview
instead.updateConstraints
will throw a fatal error if it generates a new constraint that did not exist before. Instead usemakeConstraints
to add additional constraints.