Refactor views

This commit is contained in:
Arkadiusz Fal
2026-02-09 01:13:02 +01:00
parent 8464464199
commit 612dce6b9f
43 changed files with 143 additions and 125 deletions

View File

@@ -8,6 +8,11 @@
import SwiftUI
struct HomeShortcutCardView<StatusIndicator: View>: View {
@Environment(\.dynamicTypeSize) private var dynamicTypeSize
#if os(tvOS)
@Environment(\.isFocused) private var isFocused
#endif
let icon: String
let title: String
let count: Int
@@ -28,11 +33,6 @@ struct HomeShortcutCardView<StatusIndicator: View>: View {
self.statusIndicator = statusIndicator
}
@Environment(\.dynamicTypeSize) private var dynamicTypeSize
#if os(tvOS)
@Environment(\.isFocused) private var isFocused
#endif
// Platform-specific styling
#if os(tvOS)
private let iconSize: CGFloat = 36