♻️ :: Adapt layer mask

This commit is contained in:
Felix Mau
2020-06-16 17:52:26 +02:00
parent 4daff045c3
commit 33bfb88ddb
3 changed files with 1 additions and 1 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 93 KiB

+1 -1
View File
@@ -64,7 +64,7 @@ open class NotchGradientLoadingBarController: GradientLoadingBarController {
private func applyNotchMask(for screenWidth: CGFloat) {
// We always center the notch in the middle of the screen.
let leftNotchPoint = (screenWidth - Config.notchWidth) / 2
let leftNotchPoint = (screenWidth - Config.notchWidth) / 2 + 0.5
let rightNotchPoint = (screenWidth + Config.notchWidth) / 2
let smallCircleDiameter: CGFloat = 2 * Config.smallCircleRadius