swift3 - 'CGAffineTransformMake' is unavailable in swift 3 -
this code doesn't compile in swift 3:
let flipvertical = cgaffinetransformmake(1, 0, 0, -1, 0, newsize.height) context.concatenate(flipvertical)
how convert over?
in swift 3, these free-standing functions have been replaced init
syntax:
let flipvertical = cgaffinetransform(a: 1, b: 0, c: 0, d: -1, tx: 0, ty: newsize.height)
Comments
Post a Comment