Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ffdde8904 | |||
| 63ebc8ed31 |
@@ -162,7 +162,7 @@ public class LCManager: NSObject, UIGestureRecognizerDelegate {
|
||||
|
||||
/// Gesture endpoints. Each point represents a corner of the screen. TODO: Handle screen rotation.
|
||||
var possibleEndpoints: [CGPoint] {
|
||||
guard let consoleWindow else { return [] }
|
||||
guard let consoleWindow = consoleWindow else { return [] }
|
||||
|
||||
let screenSize = viewController.view.frame.size
|
||||
|
||||
@@ -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