SHARE
TWEET

Untitled

a guest Sep 21st, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class NoteController {
  2.    
  3.     let imageController: ImageController
  4.    
  5.     init(imageController: ImageController) {
  6.         self.imageController = imageController
  7.     }
  8.    
  9.     func createNote(text: String, imageThatNeedsResizing: UIImage) -> Note {
  10.         let resizedImage = imageController.resize(image: imageThatNeedsResizing, size: CGSize(width: 10, height: 10))
  11.         return Note(text: text, image: resizedImage)
  12.     }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top