SnapKit 0.40.0 is a complete re-write to take advantage of modern Swift 3.0 as well as clean up the API. As such please use with caution and check your apps thoroughly
.snp.* rather than .snp_*. For example view.snp.makeConstraints { }update(offset:), update(inset:) and update(priority:).inset() will no longer take CGPoint or CGSize as input.offset() will no longer take CGPoint, CGSize, EdgeInsets as inputupdateConstraints will no longer allow creating new constraints unless there are no existing constraints for the view. If it does generate new constraints it will throw a fatal error.fatalError with better outputNSLayoutConstraint.activate and what view they are added to is now deferred to UIKitvar contentHugging<Axis>Priority: CGFloat to makevar contentCompressionResistance<Axis>Priority: CGFloat to makeequalToSuperview() conveniencelabeled("Hello") to constraint chain to label your constraints for debugging output..insets() for width and height #183guard #available statementsinsets to inset and it now accepts Float/Double/CGFloat/Int/UInt as well as EdgeInsetsmake.width.equalTo(50) now install directly on the from view rather than it’s superviewfinal declarations as they were causing crashes in certain circumstancesand and with chain variables were removedupdate### functions to Constraint so their constants and priorities can be updatedSnapKit.Config.interfaceLayoutDirection variable for richer Leading/Trailing support.snp_prepareConstraints -> [Constraint] which allows pre-building of constraintsand when it is used after relation has been set