I'm attempting to add perspective to a view in UIKit
.
Currently my implementation looks like this:
let view: UIView
...
vat perspective = CATransform3DIdentity
view.layer.sublayerTransform = perspective
view.layer.transform = CATransform3DConcat(
perspective,
someTransform
)
Play around with that example code to get a better idea of what's going on.