SnapKit breaking changes

swift

6 curated breaking changes across major versions of SnapKit. Use this as a migration checklist before bumping dependencies.

6
changes
Breaking changes by transition
  • 3.0.0 \u2192 3.0.1breaking

    Debug labels must now use a function rather than a property. `snp.label = ""` is now `snp.setLabel("")`

  • 0.22.0 \u2192 3.0.0breaking

    iOS 7.0 support has been removed

  • 0.22.0 \u2192 3.0.0breaking

    `install` and `uninstall` have been deprecated, use `activate` and `deactivate` instead

  • 0.22.0 \u2192 3.0.0breaking

    DSL is now accessed through `.snp.*` rather than `.snp_*`. For example `view.snp.makeConstraints { }`

  • 0.22.0 \u2192 3.0.0breaking

    Constraints are now updated through `update(offset:)`, `update(inset:)` and `update(priority:)`

  • 0.22.0 \u2192 3.0.0breaking

    `.inset()` will no longer take `CGPoint` or `CGSize` as input

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/swift/SnapKit
SnapKit breaking changes — Swift migration guide | DepScope