Recuperando UIImage de UIImageView no Swift

Encontrei a solução, mas ela não está no Swift:Convertendo UIImageView em UIImage

Eu até fui desonesto tentando implementá-lo no Swift usandoUnsafeMutablePointed e não teve sorte.

No entanto, os ponteiros normalmente são desaprovados no Swift e seria bom se houvesse uma solução simples para isso!

Código de exemplo:

let test1:UIImageView = UIImageView(image: UIImage(named: "test")) 
let test2 = test1.image // This fails with an error: Instance member ‘test1’ cannot be used on type ‘viewController’

questionAnswers(2)

yourAnswerToTheQuestion