-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Use the scale factor of the device's main screen when scaling the image. #515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Generated by 🚫 Danger |
Codecov Report
@@ Coverage Diff @@
## master #515 +/- ##
=======================================
Coverage 93.81% 93.81%
=======================================
Files 66 66
Lines 2765 2765
=======================================
Hits 2594 2594
Misses 171 171
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@@ -74,7 +74,7 @@ public extension UIImage { | |||
public func scaled(toHeight: CGFloat, opaque: Bool = false, with orientation: UIImageOrientation? = nil) -> UIImage? { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're at it fixing these functions, can you remove the orientation
param for both of them? It's unused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@VincentSit Thank you for this fix 👍
Thank you for contributing to SwifterSwift! I've invited you to join the SwifterSwift GitHub organization - no pressure to accept! If you'd like more information on what that means, check out our contributing guidelines. Feel free to reach out if you have any questions! 😃 |
Thank you all. |
This PR solves the image scaling issue I commented on #446.
Checklist