From 9c28ce40a9baf8e5142f14693460bb2170fde4be Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sat, 31 Aug 2019 23:23:47 +0800 Subject: [PATCH] Update the Example for Appkit using the aligning and scaling layout --- Examples/SDWebImage OSX Demo/ViewController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Examples/SDWebImage OSX Demo/ViewController.m b/Examples/SDWebImage OSX Demo/ViewController.m index 9463d81d..44a76766 100644 --- a/Examples/SDWebImage OSX Demo/ViewController.m +++ b/Examples/SDWebImage OSX Demo/ViewController.m @@ -41,6 +41,8 @@ [self.imageView3 sd_setImageWithURL:[NSURL URLWithString:@"https://nr-platform.s3.amazonaws.com/uploads/platform/published_extension/branding_icon/275/AmazonS3.png"]]; // SDAnimatedImageView + Animated Image self.imageView4.sd_imageTransition = SDWebImageTransition.fadeTransition; + self.imageView4.imageScaling = NSImageScaleProportionallyUpOrDown; + self.imageView4.imageAlignment = NSImageAlignLeft; // supports NSImageView's layout properties [self.imageView4 sd_setImageWithURL:[NSURL URLWithString:@"http://littlesvr.ca/apng/images/SteamEngine.webp"] placeholderImage:nil options:SDWebImageForceTransition]; self.clearCacheButton.target = self;