Skip to content

Commit

Permalink
Fix to corner radius bug (#71)
Browse files Browse the repository at this point in the history
* Adds IDEWorkspaceChecks.plist to .gitignore

* Fixes a bug in how the corner radius is handled. The view layer didn't have mask to bounds set to true.
  • Loading branch information
wltrup authored and dmcrodrigues committed Jul 13, 2018
1 parent 03c83a0 commit 82ca26f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,4 @@ backboneLocalizationBuilder
fastlane/README.md
fastlane/report.xml
vendor/
IDEWorkspaceChecks.plist
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ extension PresentationController {
set {
let radius = min(max(newValue, 0), maximumCornerRadius)
presentedView?.layer.cornerRadius = radius
presentedView?.layer.masksToBounds = true
if #available(iOS 11.0, *) {
presentedView?.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner]
}
Expand Down

0 comments on commit 82ca26f

Please sign in to comment.