Fix compile errors on TV

This commit is contained in:
Davide 2025-02-11 00:27:46 +01:00
parent c0a83675d2
commit 40bafcfbb7
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
3 changed files with 12 additions and 0 deletions

View File

@ -28,6 +28,8 @@ import CommonUtils
import PassepartoutKit
import SwiftUI
#if !os(tvOS)
public struct PreferencesGroup: View {
#if os(iOS)
@ -113,3 +115,5 @@ private extension PreferencesGroup {
.disabled(isErasingiCloud)
}
}
#endif

View File

@ -26,6 +26,8 @@
import CommonLibrary
import SwiftUI
#if !os(tvOS)
public struct PreferencesView: View {
private let profileManager: ProfileManager
@ -48,3 +50,5 @@ public struct PreferencesView: View {
#endif
}
}
#endif

View File

@ -25,6 +25,8 @@
import SwiftUI
#if !os(tvOS)
public struct PinActiveProfileToggle: View {
@AppStorage(UIPreference.pinsActiveProfile.key)
@ -68,3 +70,5 @@ public struct HideActiveProfileModifier: ViewModifier {
}
}
}
#endif