Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

swift screenshot

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

PREVIOUS NEXT
Code Example
Swift :: swift create custom button programmatically 
Swift :: swift close view 
Swift :: concatenate string swift 
Swift :: swift get current hour 
Swift :: swift pretty print json 
Swift :: defer swift 
Swift :: swift iterate through string 
Swift :: create button with icon swift 
Swift :: button click programmatically swift 
Swift :: UIFont.init bold 
Swift :: swift array index of where 
Swift :: swift extension Array with specific element type 
Swift :: make text autoresize swiftui 
Swift :: How to remove the last item from an array in swift 
Swift :: swift initialize array with size 
Swift :: swiftui selection list 
Swift :: swift array in chunks 
Swift :: abs swift 
Swift :: Swift for Loop inside a while Loop 
Swift :: swift variables 
Swift :: xcode button center text 
Swift :: fullscreencover swiftui 
Swift :: swift weekday date component values 
Swift :: Notification Service Extension vs Content Extension 
Swift :: How to Hide Password in Text field Swift 
Swift :: swift collectionview ispagingenabled change page size 
Swift :: how to do corner radius from button image in swift 
Ruby :: create image from base64 ruby 
Ruby :: copy to clipboard in ruby in windows 
Ruby :: rails migration polymorphic references 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =