_Davidsmith,
@_Davidsmith@mastodon.social avatar

I've been wondering if we'll see a number of 3rd-party PWA site wrapper apps for visionOS at launch. Where you can create a rich bookmark for various websites to more easily separate their windows and use them.

I explored this briefly for Widgetsmith but since it would require making the app 17+ (unrestricted web access) and I suspect Safari would get this ability natively at some point soon it never get promoted to a proper feature but would seem like a useful tool for the initial period.

A screenshot showing an interactive website book mark running within widgetsmith.

christianselig,
@christianselig@mastodon.social avatar

@_Davidsmith How are you animating the window size change on tap? I didn’t realize you could programmatically do that

_Davidsmith,
@_Davidsmith@mastodon.social avatar

@christianselig As far as I know the only way to do it is to use the UIKit UIWindowScene.GeometryPreferences options and then apply that to your scene using requestGeometryUpdate. The actual mechanism I'm using for that feels like a giant pile of hacks, but so far it seems to work pretty reliably. There doesn't seem to be a good way to do it in SwiftUI only.

christianselig,
@christianselig@mastodon.social avatar

@_Davidsmith Interesting, interesting. Yeah window stuff is a curious area on visionOS right now

its_john_davis,
@its_john_davis@mastodon.social avatar

@_Davidsmith @christianselig

Use .windowResizability(.contentSize) on your WindowGroup and set the frame of the content.

There is also a .contentMinSize option.

_Davidsmith,
@_Davidsmith@mastodon.social avatar

@its_john_davis @christianselig Interestingly, I tried that approach a few months back and could never get it to work, but it does look to work correctly now in the GM version. So I can investigate moving towards that as my approach now instead of dropping down into Catalyst. Thanks for the tip.

iamlayer8,
@iamlayer8@mastodon.social avatar

@_Davidsmith
Maybe not in the context of Widgetsmith, but I think there is a place for a good app on all platforms. and were good entry points but are not maintained anymore. is only halfway there. Individual browser instances is better. And it does not look like Apple will do this well.

jamesthomson,
@jamesthomson@mastodon.social avatar

@_Davidsmith I assume a visionOS app can’t have a different rating to the iOS one? Because I don’t see 17+ being a problem for the headset.

imyke,
@imyke@myke.social avatar

@_Davidsmith this looks very useful

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