mirror of
https://github.com/yattee/yattee.git
synced 2025-11-13 21:58:48 +00:00
Use fullScreenCover for Settings and Accounts on tvOS
- Replace sheet presentation with fullScreenCover for Settings and Accounts views on tvOS - Add proper background color to Settings and Accounts screens on tvOS - Clean up trailing whitespace in HomeView 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,9 @@ import SwiftUI
|
||||
struct AccountsView: View {
|
||||
@StateObject private var model = AccountsViewModel()
|
||||
@Environment(\.presentationMode) private var presentationMode
|
||||
#if os(tvOS)
|
||||
@Environment(\.colorScheme) private var colorScheme
|
||||
#endif
|
||||
|
||||
var body: some View {
|
||||
#if os(macOS)
|
||||
@@ -28,6 +31,7 @@ struct AccountsView: View {
|
||||
}
|
||||
#if os(tvOS)
|
||||
.frame(maxWidth: 1000)
|
||||
.background(Color.background(scheme: colorScheme).ignoresSafeArea())
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user