Hide post button if we still have placeholder text
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
1 parent
1ab42b4c5c
commit
a59cb04ce0
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user