🏠
Author: chriswu.com (did:plc:pkehwbxsusk6vk2etua7o7h4)

Record🤔

uri:
"at://did:plc:pkehwbxsusk6vk2etua7o7h4/app.bsky.feed.post/3jvozn2bpxs2q"
cid:
"bafyreif2yi5lv3sexfgxpx7u7fekusv4557pr6djy7fmd4omamqi3w74na"
value:
text:
"The good news: Google Bard can answer questions about iOS 16 additions to SwiftUI.

The bad news: As I've found with ChatGPT it can also completely make up things. The modifier it mentions doesn't exist and this code doesn't compile for more than one reason."
$type:
"app.bsky.feed.post"
embed:
$type:
"app.bsky.embed.images"
images:
  • alt:
    "ShareLink is only available on iOS 16 and later.
    ShareLink can only share content that is accessible to your app. For example, if you want to share a file that is stored in the user's iCloud Drive, you will need to first request permission to access the file.
    ShareLink can only share content that is not protected by DRM.
    I hope this helps! Let me know if you have any other questions.
    
    Is there a way to execute some code when the ShareLink button is tapped BUT before the share sheet is presented?
    
    Yes, there is a way to execute some code when the ShareLink button is tapped but before the share sheet is presented. To do this, you can use the onShareLink() modifier. The onShareLink() modifier takes a closure as its argument. This closure will be executed when the ShareLink button is tapped.
    
    For example, the following code creates a ShareLink view that shares a link to the Apple Developer website. The onShareLink() modifier is used to execute a closure that prints a message to the console"
    image:
    View blob content
    $type:
    "blob"
    ref:
    $link:
    "bafkreieo5udhi77dmnwy3kug2tfbtkxf5mdutpzhnyx3yqda7ktfc6mgry"
    mimeType:
    "image/jpeg"
    size:
    133640
createdAt:
"2023-05-14T14:10:20.612Z"