Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 63ebc8ed31 | |||
| 64e18b18fc |
@@ -185,7 +185,7 @@ public class LCManager: NSObject, UIGestureRecognizerDelegate {
|
||||
let leftEndpointX = consoleSize.width / 2 + consoleWindow.safeAreaInsets.left + (isLandscapePhone ? 4 : 12) + (isLandscapeRightNotchedPhone ? -16 : 0)
|
||||
let rightEndpointX = screenSize.width - (consoleSize.width / 2 + consoleWindow.safeAreaInsets.right) - (isLandscapePhone ? 4 : 12) + (isLandscapeLeftNotchedPhone ? 16 : 0)
|
||||
let topEndpointY = consoleSize.height / 2 + consoleWindow.safeAreaInsets.top + 12 + (isPortraitNotchedPhone ? -10 : 0)
|
||||
let bottomEndpointY = screenSize.height - (consoleSize.height / 2 + consoleWindow.safeAreaInsets.bottom) - 12 + (isLandscapePhone ? 10 : 0)
|
||||
let bottomEndpointY = screenSize.height - consoleSize.height / 2 - (keyboardHeight ?? consoleWindow.safeAreaInsets.bottom) - 12 + (isLandscapePhone ? 10 : 0)
|
||||
|
||||
if consoleSize.width < screenSize.width - 112 {
|
||||
// Four endpoints, one for each corner.
|
||||
@@ -280,10 +280,12 @@ public class LCManager: NSObject, UIGestureRecognizerDelegate {
|
||||
|
||||
let _ = lumaView
|
||||
|
||||
borderView.frame = CGRect(x: -1, y: -1,
|
||||
width: consoleSize.width + 2,
|
||||
height: consoleSize.height + 2)
|
||||
borderView.layer.borderWidth = 2 - 1 / consoleView.traitCollection.displayScale
|
||||
let borderWidth = 2 - 1 / consoleView.traitCollection.displayScale
|
||||
|
||||
borderView.frame = CGRect(x: -borderWidth, y: -borderWidth,
|
||||
width: consoleSize.width + 2 * borderWidth,
|
||||
height: consoleSize.height + 2 * borderWidth)
|
||||
borderView.layer.borderWidth = borderWidth
|
||||
borderView.layer.borderColor = UIColor(white: 1, alpha: 0.08).cgColor
|
||||
borderView.layer.cornerRadius = consoleView.layer.cornerRadius + 1
|
||||
borderView.layer.cornerCurve = .continuous
|
||||
|
||||
Reference in New Issue
Block a user