mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-24 21:57:08 +08:00
[fix] keep iOS floating controls clear of the Dynamic Island
This commit is contained in:
@@ -245,6 +245,8 @@ struct RemoteSessionView: View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private var floatingStatusControls: some View {
|
private var floatingStatusControls: some View {
|
||||||
|
// Keep the orb and expanded menu inside the safe area so their initial
|
||||||
|
// positions and drag bounds clear the Dynamic Island in either orientation.
|
||||||
GeometryReader { proxy in
|
GeometryReader { proxy in
|
||||||
let containerSize = proxy.size
|
let containerSize = proxy.size
|
||||||
let restingOrbCenter = boundedOrbCenter(in: containerSize)
|
let restingOrbCenter = boundedOrbCenter(in: containerSize)
|
||||||
@@ -332,7 +334,6 @@ struct RemoteSessionView: View {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ignoresSafeArea()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private var draggableKeyboard: some View {
|
private var draggableKeyboard: some View {
|
||||||
|
|||||||
Reference in New Issue
Block a user