Rework storage structs, link preview
This commit is contained in:
@ -12,21 +12,7 @@ struct LocalizedPostDetailView: View {
|
||||
text: $post.pageLinkText,
|
||||
footer: "The custom text to show for the link to the linked page")
|
||||
|
||||
OptionalStringPropertyView(
|
||||
title: "Preview Title",
|
||||
text: $post.linkPreviewTitle,
|
||||
prompt: post.title,
|
||||
footer: "The title to use for the post when linking to it")
|
||||
|
||||
OptionalImagePropertyView(
|
||||
title: "Preview Image",
|
||||
selectedImage: $post.linkPreviewImage,
|
||||
footer: "The image to show for previews of this post")
|
||||
|
||||
OptionalTextFieldPropertyView(
|
||||
title: "Preview Description",
|
||||
text: $post.linkPreviewDescription,
|
||||
footer: "The description to show in previews of the post")
|
||||
LinkPreviewDetailView(linkPreview: post.linkPreview, fallbackTitle: post.title)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user