SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- class NoteController {
- var imageController: ImageController?
- func createNote(text: String, imageThatNeedsResizing: UIImage) -> Note? {
- guard let resizedImage = imageController?.resize(image: imageThatNeedsResizing, size: CGSize(width: 10, height: 10)) else { return nil }
- return Note(text: text, image: resizedImage)
- }
- }
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.