Xcode8 Swift3 'CGRectDivide' is unavailable: Use divided(atDistance:from:)
1 2 3 |
var rightBezelRect = CGRect.null var tempRect = CGRect.null CGRectDivide(self.childControllerContainerView.bounds, &rightBezelRect, &tempRect, bezelRange, .maxXEdge) |
Swift3
1 |
let (rightBezelRect, tempRect) = self.childControllerContainerView.bounds.divided(atDistance: bezelRange, from: .minXEdge) |
转载请注明:天狐博客 » Swift3 'CGRectDivide' is unavailable: Use divided(atDistance:from:)