mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-10 05:43:39 +01:00
Fix crash on visionOS in AboutView
This commit is contained in:
parent
77aa50ef19
commit
7423aba92a
@ -27,7 +27,7 @@ struct AboutView: View {
|
||||
var body: some View {
|
||||
List {
|
||||
Section {
|
||||
#if !targetEnvironment(macCatalyst)
|
||||
#if !targetEnvironment(macCatalyst) && !os(visionOS)
|
||||
HStack {
|
||||
Spacer()
|
||||
Image(uiImage: .init(named: "AppIconAlternate0")!)
|
||||
|
@ -96,6 +96,9 @@ public struct AppAccountsSelectorView: View {
|
||||
AppAccountView(viewModel: viewModel, isParentPresented: $isPresented)
|
||||
}
|
||||
addAccountButton
|
||||
#if os(visionOS)
|
||||
.foregroundStyle(theme.labelColor)
|
||||
#endif
|
||||
}
|
||||
#if !os(visionOS)
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
@ -107,8 +110,10 @@ public struct AppAccountsSelectorView: View {
|
||||
aboutButton
|
||||
supportButton
|
||||
}
|
||||
#if !os(visionOS)
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
#if os(visionOS)
|
||||
.foregroundStyle(theme.labelColor)
|
||||
#else
|
||||
.listRowBackground(theme.primaryBackgroundColor)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user