mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 09:49:46 +00:00
Refactor views
This commit is contained in:
@@ -12,14 +12,14 @@ import SwiftUI
|
||||
/// A floating button that toggles the panel between left and right sides.
|
||||
/// Mirrors the style of PanelPinButton: 36pt glass circle, same shadow and haptic.
|
||||
struct PanelAlignmentButton: View {
|
||||
@Environment(\.appEnvironment) private var appEnvironment
|
||||
|
||||
let panelSide: FloatingPanelSide
|
||||
let onAlignmentToggle: () -> Void
|
||||
|
||||
/// Whether the drag handle is currently active (being dragged or hovered).
|
||||
@Binding var isDragHandleActive: Bool
|
||||
|
||||
@Environment(\.appEnvironment) private var appEnvironment
|
||||
|
||||
/// Button diameter
|
||||
private static let buttonSize: CGFloat = 36
|
||||
|
||||
|
||||
Reference in New Issue
Block a user