mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-06-16 12:24:31 +00:00
♻️ :: Adapt layer mask
This commit is contained in:
1 parent
4daff045c3
commit
33bfb88ddb
3 files changed
+1
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user