Hide post button if we still have placeholder text

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2022-08-09 16:09:40 -07:00
parent 1ab42b4c5c
commit a59cb04ce0

View File

@@ -43,7 +43,7 @@ struct PostView: View {
}
var is_post_empty: Bool {
return post.allSatisfy { $0.isWhitespace }
return post == POST_PLACEHOLDER || post.allSatisfy { $0.isWhitespace }
}
var body: some View {