Skip to content

If you need to have a SwiftUI Tab Bar similar (Work in Progress) to Safari on iOS here is the beginning of it.

Notifications You must be signed in to change notification settings

stuffmc/TabbedViews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tab Bar in SwiftUI on iOS/MacCatalyst?

If you need to have a Tab Bar similar (Work in Progress) to Safari here is the beginning of it.

Pull Requests are welcome — this is very much a work in Progress.

Replace the DateView obviously with your content, and use a bit more than just a Date in your Model. 😂

Because onHover is broken in MacCatalyst, for the moment, I'm using onHover2 — Thanks @paulcolton!

Also you can see how KeyCommands are implemented for iOS & MacCatalyst, since ⌘T and ⌘W work both on iPad and Mac.

Finally, after a very nice discussion with @nhawk I found this Thread on StackOverflow about the built-in UIWindowScene support for Tabs, which is very limited.

About

If you need to have a SwiftUI Tab Bar similar (Work in Progress) to Safari on iOS here is the beginning of it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages