mirror of
https://github.com/yattee/yattee.git
synced 2026-02-20 01:39:46 +00:00
Refactor views
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user