Swift Screenshot

[Solved] Swift Screenshot | Swift - Code Explorer | yomemimo.com
Question : swift screenshot

Answered by : velmurugan

UIGraphicsBeginImageContext(view.frame.size) // Size of the screen
view.layer.renderInContext(UIGraphicsGetCurrentContext())
let image = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()

Source : | Last Update : Sun, 29 May 22

Answers related to swift screenshot

Code Explorer Popular Question For Swift