diff --git a/Shared/Navigation/ContentView.swift b/Shared/Navigation/ContentView.swift index ec5b8f4..ae9fb98 100644 --- a/Shared/Navigation/ContentView.swift +++ b/Shared/Navigation/ContentView.swift @@ -11,7 +11,7 @@ struct ContentView: View { .toolbar { NavigationLink( destination: PostEditor( - post: Post(title: "Title", body: "Write your post here...", createdDate: Date()) + post: Post() ) ) { Image(systemName: "plus") diff --git a/Shared/Post/Post.swift b/Shared/Post/Post.swift index 52a5e20..53dc52c 100644 --- a/Shared/Post/Post.swift +++ b/Shared/Post/Post.swift @@ -3,9 +3,9 @@ import WriteFreely struct Post: Identifiable { var id = UUID() - var title: String - var body: String - var createdDate: Date + var title: String = "Title" + var body: String = "Write your post here..." + var createdDate: Date = Date() var status: PostStatus = .draft }