Skip to content

Commit

Permalink
Update macOS Demo screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
dreampiggy committed Jan 11, 2024
1 parent 5785d55 commit 29680b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ - (void)viewDidLoad {

CGSize screenSize = self.view.bounds.size;

NSImageView *imageView1 = [[NSImageView alloc] init];
imageView1.frame = CGRectMake(0, 0, screenSize.width, screenSize.height / 2);
UIImageView *imageView1 = [[UIImageView alloc] init];
imageView1.frame = CGRectMake(0, 0, screenSize.width / 2, screenSize.height);
imageView1.imageScaling = NSImageScaleProportionallyUpOrDown;

NSImageView *imageView2 = [[NSImageView alloc] init];
imageView2.frame = CGRectMake(0, screenSize.height / 2, screenSize.width, screenSize.height / 2);
UIImageView *imageView2 = [[UIImageView alloc] init];
imageView2.frame = CGRectMake(screenSize.width / 2, 0, screenSize.width / 2, screenSize.height);
imageView2.imageScaling = NSImageScaleProportionallyUpOrDown;

[self.view addSubview:imageView1];
Expand Down
Binary file added Example/Screenshot/SVGDemo-macOS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ To run the example project, clone the repo, and run `pod install` from the Examp
## Screenshot

<img src="https://raw.githubusercontent.com/SDWebImage/SDWebImageSVGNativeCoder/main/Example/Screenshot/SVGDemo.png" width="300" />
<img src="https://raw.githubusercontent.com/SDWebImage/SDWebImageSVGNativeCoder/main/Example/Screenshot/SVGDemo-macOS.png" width="600" />

## Author

Expand Down

0 comments on commit 29680b9

Please sign in to comment.