UIEdgeInsetsInsetRect’ has been replaced by instance method ‘CGRect.inset(by:)

The error it is pretty self explanatory. You can use it like this:

var animationRect = frame.inset(by: UIEdgeInsets(top: padding, left: padding, bottom: padding, right: padding))

or simply

var animationRect = frame.insetBy(dx: padding, dy: padding)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)