mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Refactor views
This commit is contained in:
@@ -12,6 +12,8 @@ import SwiftUI
|
||||
/// A floating pin button that appears on the divider edge between player and panel.
|
||||
/// Features auto-hide behavior with 3s timer, reappearing on drag handle interaction.
|
||||
struct PanelPinButton: View {
|
||||
@Environment(\.appEnvironment) private var appEnvironment
|
||||
|
||||
let isPinned: Bool
|
||||
let panelSide: FloatingPanelSide
|
||||
let onPinToggle: () -> Void
|
||||
@@ -19,8 +21,6 @@ struct PanelPinButton: View {
|
||||
/// 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