Last active
November 5, 2017 01:07
-
-
Save jgonfer/c511466fd6ad2b594442d5b8a047ae5f to your computer and use it in GitHub Desktop.
Vector Images Tutorial for Xcode 9: https://github.com/jgonfer/vector-images-tutorial-xcode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
super.viewDidLoad() | |
if #available(iOS 11.0, *) { | |
pumpkinPngImageView.adjustsImageSizeForAccessibilityContentSizeCategory = true | |
pumpkinPdfImageView.adjustsImageSizeForAccessibilityContentSizeCategory = true | |
} else { | |
// Fallback on earlier versions | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
super.viewDidLoad() | |
if #available(iOS 11.0, *) { | |
let image = UIImage(named: "first_large") | |
imagesBarItem.largeContentSizeImage = image | |
} else { | |
// Fallback on earlier versions | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment