Jonathan Willing on Nostr: npub1sy8vt…pw2zc One use case that seems to be a grey area is wrapping a single ...
npub1sy8vt0hed8vr58ueqjlvmpzylv9he2fvv04luf4z5vyzsuut5zvqfpw2zc (npub1sy8…w2zc) One use case that seems to be a grey area is wrapping a single instance of a view controller (owned externally) in a representable. This doesn’t seem to be recommended, but in rare cases it can be necessary — and it does seem to work if the view is only in a single part of the tree.
I’m curious how the underlying lifecycle of representables work, to better understand how this could break. Looking forward to your writeup!
Published at
2023-09-08 16:52:21Event JSON
{
"id": "269dcfd33841362a01da595a91abddee73f1684f9ba7de3ab8072f28250cda91",
"pubkey": "30ce4b1be777afc43b13269c4508d197a51cd0b7d2aba1ed78c9e00190d1739e",
"created_at": 1694191941,
"kind": 1,
"tags": [
[
"p",
"810ec5bef969d83a1f9904becd8444fb0b7ca92c63ebfe26a2a30828738ba098",
"wss://relay.mostr.pub"
],
[
"p",
"36fb9c68c8ef310b82bc748f1a33086f5a42fcb02e6a0e59867fd3efb3298121",
"wss://relay.mostr.pub"
],
[
"e",
"cdd896ca9bf73205bfe33536484b06d40d18d6eae813bb5b77bfb59cd9416f04",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.social/users/willing/statuses/111030563065443866",
"activitypub"
]
],
"content": "nostr:npub1sy8vt0hed8vr58ueqjlvmpzylv9he2fvv04luf4z5vyzsuut5zvqfpw2zc One use case that seems to be a grey area is wrapping a single instance of a view controller (owned externally) in a representable. This doesn’t seem to be recommended, but in rare cases it can be necessary — and it does seem to work if the view is only in a single part of the tree.\n\nI’m curious how the underlying lifecycle of representables work, to better understand how this could break. Looking forward to your writeup!",
"sig": "bd50515a7f776b61103ecc49b1d09ebd46d25dbc7324ddfe8cb89805d2efc4c20048a13600f0f749c9c9028855e596dfd1d2915f3e3645f2c3bacfe176b07188"
}