Show message in editor if post hasNewerRemoteCopy

This commit is contained in:
Angelo Stavrow 2020-08-28 09:07:33 -04:00
parent a3fe7630e8
commit 07d306a196
No known key found for this signature in database
GPG Key ID: 1A49C7064E060EEE
2 changed files with 6 additions and 2 deletions

View File

@ -9,6 +9,10 @@ struct PostEditorView: View {
@State private var title = ""
var body: some View {
VStack {
if post.hasNewerRemoteCopy {
Text("⚠️ Newer copy on server")
.font(.callout)
}
TextEditor(text: $title)
.font(.title)
.frame(height: 100)

View File

@ -7,12 +7,12 @@
<key>WriteFreely-MultiPlatform (iOS).xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
<key>WriteFreely-MultiPlatform (macOS).xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>