mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-03-28 04:25:28 +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 ||
|
||||
UIDevice.current.userInterfaceIdiom == .mac {
|
||||
[.timeline, .trending, .federated, .local, .notifications, .mentions, .explore, .messages, .bookmarks, .favorites, .profile, .settings]
|
||||
} else if UIDevice.current.userInterfaceIdiom == .vision {
|
||||
[.profile, .timeline, .trending, .federated, .local, .notifications, .mentions, .explore, .messages, .settings]
|
||||
} else if UIDevice.current.userInterfaceIdiom == .vision {
|
||||
[.profile, .timeline, .notifications, .mentions, .explore, .messages, .settings]
|
||||
} else {
|
||||
[.timeline, .notifications, .explore, .messages, .profile]
|
||||
}
|
||||
|
|
|
@ -60,18 +60,15 @@ struct TimelineUnreadStatusesView: View {
|
|||
}
|
||||
.accessibilityLabel("accessibility.tabs.timeline.unread-posts.label-\(observer.pendingStatusesCount)")
|
||||
.accessibilityHint("accessibility.tabs.timeline.unread-posts.hint")
|
||||
#if os(visionOS)
|
||||
.buttonStyle(.bordered)
|
||||
.tint(Material.ultraThick)
|
||||
#else
|
||||
.buttonStyle(.bordered)
|
||||
.background(Material.ultraThick)
|
||||
#endif
|
||||
.cornerRadius(8)
|
||||
#if !os(visionOS)
|
||||
.overlay(
|
||||
RoundedRectangle(cornerRadius: 8)
|
||||
.stroke(theme.tintColor, lineWidth: 1)
|
||||
)
|
||||
#endif
|
||||
.padding(8)
|
||||
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: preferences.pendingLocation)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue