Experimental browser for the Atmosphere
Small SwiftUI helper that inserts the parent view controller into the environment for children. Use at your own risk; it's very easy to mess up using this. But it's nice to be able to have @Environment(\.parentViewController) gist.github.com/harlanhaskin...
Feb 22, 2025, 3:21 AM
{ "uri": "at://did:plc:rtcmfdskwc7kfc3bgnwbpqxq/app.bsky.feed.post/3liqeh6mhyk2s", "cid": "bafyreigzdusx6np65qebn4jqisefghjq7rtum4tkq4gczdvdrr4yvvlyfu", "value": { "text": "Small SwiftUI helper that inserts the parent view controller into the environment for children. Use at your own risk; it's very easy to mess up using this.\n\nBut it's nice to be able to have @Environment(\\.parentViewController)\n\ngist.github.com/harlanhaskin...", "$type": "app.bsky.feed.post", "embed": { "$type": "app.bsky.embed.external", "external": { "uri": "https://gist.github.com/harlanhaskins/30d0f2367c3b86688412a021bd6479f8", "thumb": { "$type": "blob", "ref": { "$link": "bafkreiasjqmnq556hw6pic4n3fcurcpztgahvjiqcn3rfqxcaw3mufbsxy" }, "mimeType": "image/jpeg", "size": 158109 }, "title": "A SwiftUI modifier for inserting the parent UIViewController in the environment", "description": "A SwiftUI modifier for inserting the parent UIViewController in the environment - View+ParentViewController.swift" } }, "langs": [ "en" ], "facets": [ { "index": { "byteEnd": 259, "byteStart": 228 }, "features": [ { "uri": "https://gist.github.com/harlanhaskins/30d0f2367c3b86688412a021bd6479f8", "$type": "app.bsky.richtext.facet#link" } ] } ], "createdAt": "2025-02-22T03:21:27.810Z" } }