James Thomson on Nostr: PCalc on iPhone Duo Day 2, moving the buttons to avoid the hinge area. I am using the ...
PCalc on iPhone Duo Day 2, moving the buttons to avoid the hinge area.
I am using the UIHingeInteraction API to get notified when the phone is being partially folded, and then the UIViewReservedRegion API to find out where the hinge area is, then rearranging the buttons around it.
{
"id":"d895dc4397673460e84698985ba82549cb26a97bb57f248f73e349b861a83dab",
"pubkey":"b612eaaf8816e9bf26f40e07104836e54d9bb4bfdb0ef306c3515ff72e18ba76",
"created_at":1790095658,
"kind":1,
"tags": [
[
"imeta",
"url https://files.mastodon.social/media_attachments/files/117/315/706/675/986/144/original/98e24c24ca3980cc.mp4",
"m video/mp4",
"dim 1792x1968",
"blurhash UeCP|*t54mN0Riazt7od4mRl?cxXxuodRiR,"
],
[
"proxy",
"https://mastodon.social/users/jamesthomson/statuses/117315709052770016",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content":"PCalc on iPhone Duo Day 2, moving the buttons to avoid the hinge area.\n\nI am using the UIHingeInteraction API to get notified when the phone is being partially folded, and then the UIViewReservedRegion API to find out where the hinge area is, then rearranging the buttons around it.\n\nhttps://files.mastodon.social/media_attachments/files/117/315/706/675/986/144/original/98e24c24ca3980cc.mp4",
"sig":"8798f4c30acd550f325d4f386badf688d9a4fb038d21fd5396837418eb09ca11f6ba477d35ecfbe50977d2b03797293ee028833bf3439f04e1cfc53d308eefb4"
}