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.
make.center.equalTo(0)now positions a view at 0,0 in it's superview rather than the center, usemake.center.equalToSuperviewinstead.updateConstraintswill throw a fatal error if it generates a new constraint that did not exist before. Instead usemakeConstraintsto add additional constraints.