mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-04-27 02:14:45 +00:00
VisionOS fixes
This commit is contained in:
parent
916c0d9831
commit
c86d627cee
2 changed files with 4 additions and 7 deletions
|
@ -26,8 +26,8 @@ enum Tab: Int, Identifiable, Hashable, CaseIterable {
|
||||||
if UIDevice.current.userInterfaceIdiom == .pad ||
|
if UIDevice.current.userInterfaceIdiom == .pad ||
|
||||||
UIDevice.current.userInterfaceIdiom == .mac {
|
UIDevice.current.userInterfaceIdiom == .mac {
|
||||||
[.timeline, .trending, .federated, .local, .notifications, .mentions, .explore, .messages, .bookmarks, .favorites, .profile, .settings]
|
[.timeline, .trending, .federated, .local, .notifications, .mentions, .explore, .messages, .bookmarks, .favorites, .profile, .settings]
|
||||||
} else if UIDevice.current.userInterfaceIdiom == .vision {
|
} else if UIDevice.current.userInterfaceIdiom == .vision {
|
||||||
[.profile, .timeline, .trending, .federated, .local, .notifications, .mentions, .explore, .messages, .settings]
|
[.profile, .timeline, .notifications, .mentions, .explore, .messages, .settings]
|
||||||
} else {
|
} else {
|
||||||
[.timeline, .notifications, .explore, .messages, .profile]
|
[.timeline, .notifications, .explore, .messages, .profile]
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,18 +60,15 @@ struct TimelineUnreadStatusesView: View {
|
||||||
}
|
}
|
||||||
.accessibilityLabel("accessibility.tabs.timeline.unread-posts.label-\(observer.pendingStatusesCount)")
|
.accessibilityLabel("accessibility.tabs.timeline.unread-posts.label-\(observer.pendingStatusesCount)")
|
||||||
.accessibilityHint("accessibility.tabs.timeline.unread-posts.hint")
|
.accessibilityHint("accessibility.tabs.timeline.unread-posts.hint")
|
||||||
#if os(visionOS)
|
|
||||||
.buttonStyle(.bordered)
|
.buttonStyle(.bordered)
|
||||||
.tint(Material.ultraThick)
|
.tint(Material.ultraThick)
|
||||||
#else
|
|
||||||
.buttonStyle(.bordered)
|
|
||||||
.background(Material.ultraThick)
|
|
||||||
#endif
|
|
||||||
.cornerRadius(8)
|
.cornerRadius(8)
|
||||||
|
#if !os(visionOS)
|
||||||
.overlay(
|
.overlay(
|
||||||
RoundedRectangle(cornerRadius: 8)
|
RoundedRectangle(cornerRadius: 8)
|
||||||
.stroke(theme.tintColor, lineWidth: 1)
|
.stroke(theme.tintColor, lineWidth: 1)
|
||||||
)
|
)
|
||||||
|
#endif
|
||||||
.padding(8)
|
.padding(8)
|
||||||
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: preferences.pendingLocation)
|
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: preferences.pendingLocation)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue