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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -