Get Post
You can also query for each individual post based on its postId. AmityPostRepository provides a convenient method getPostForPostId(_:) which returns AmityObject<AmityPost>.
The observe block can get called multiple times depending upon where the post is being fetched from. We can check the dataStatus property for liveObject to see if the post is being fetched from server or locally. Refer to Accessing Post Information section.
Export as PDF
Copy link