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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

Ansible warning on jinja2 braces on when -

html - How to custom Bootstrap grid height? -