mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-02-04 03:52:22 +00:00
Fix crash on visionOS in AboutView
This commit is contained in:
parent
77aa50ef19
commit
7423aba92a
2 changed files with 8 additions and 3 deletions
|
@ -27,7 +27,7 @@ struct AboutView: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
List {
|
List {
|
||||||
Section {
|
Section {
|
||||||
#if !targetEnvironment(macCatalyst)
|
#if !targetEnvironment(macCatalyst) && !os(visionOS)
|
||||||
HStack {
|
HStack {
|
||||||
Spacer()
|
Spacer()
|
||||||
Image(uiImage: .init(named: "AppIconAlternate0")!)
|
Image(uiImage: .init(named: "AppIconAlternate0")!)
|
||||||
|
|
|
@ -96,6 +96,9 @@ public struct AppAccountsSelectorView: View {
|
||||||
AppAccountView(viewModel: viewModel, isParentPresented: $isPresented)
|
AppAccountView(viewModel: viewModel, isParentPresented: $isPresented)
|
||||||
}
|
}
|
||||||
addAccountButton
|
addAccountButton
|
||||||
|
#if os(visionOS)
|
||||||
|
.foregroundStyle(theme.labelColor)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#if !os(visionOS)
|
#if !os(visionOS)
|
||||||
.listRowBackground(theme.primaryBackgroundColor)
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
|
@ -107,7 +110,9 @@ public struct AppAccountsSelectorView: View {
|
||||||
aboutButton
|
aboutButton
|
||||||
supportButton
|
supportButton
|
||||||
}
|
}
|
||||||
#if !os(visionOS)
|
#if os(visionOS)
|
||||||
|
.foregroundStyle(theme.labelColor)
|
||||||
|
#else
|
||||||
.listRowBackground(theme.primaryBackgroundColor)
|
.listRowBackground(theme.primaryBackgroundColor)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue