michaelsteeber,
@michaelsteeber@mastodon.social avatar

I've been trying to push the bounds of the visionOS interface a bit and came up with this really nice split view for BitMaps.

A screen recording of the split view in BitMaps.

reftonull,
@reftonull@hachyderm.io avatar

@michaelsteeber This looks great! I have a similar thing in my app Perspectives, and spun the functionality out into a nice SwiftUI view modifier. Here’s a link to the package if you’d like to give it a spin:

https://github.com/reftonull/VisionPanes

michaelsteeber,
@michaelsteeber@mastodon.social avatar

@reftonull cool!

michaelsteeber,
@michaelsteeber@mastodon.social avatar

This is on TestFlight now. If you have a Vision Pro and want to try it, let me know.

michaelsteeber,
@michaelsteeber@mastodon.social avatar

This is a ZStack with two HStacks. The first has a Spacer and the details view, the second has the map and a flexible Spacer. When you show details, I animate the spacer width and the opacity, blur, and depth of the details view. The window has a hidden NavigationTitle that I use to access the underlying UIWindowScene. Then I'm expanding and contracting the minimum window size with requestGeometryUpdate.

michaelsteeber,
@michaelsteeber@mastodon.social avatar

The details view is a NavigationStack with a path that I update based on the map selection for programmatic navigation.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • SwiftUI
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • everett
  • cisconetworking
  • slotface
  • GTA5RPClips
  • rosin
  • thenastyranch
  • kavyap
  • tacticalgear
  • modclub
  • JUstTest
  • osvaldo12
  • Durango
  • khanakhh
  • anitta
  • provamag3
  • ngwrru68w68
  • cubers
  • tester
  • ethstaker
  • megavids
  • normalnudes
  • Leos
  • lostlight
  • All magazines