mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-18 22:02:11 +00:00
Fix compile errors on TV
This commit is contained in:
parent
c0a83675d2
commit
40bafcfbb7
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user