This commit is contained in:
Shadowfacts 2022-10-30 14:47:36 -04:00
parent d05275020f
commit 5afd9e83eb
2 changed files with 10 additions and 3 deletions

View File

@ -137,8 +137,7 @@ struct ComposeView: View {
}
MainComposeTextView(
draft: draft,
placeholder: Text("What's on your mind?")
draft: draft
)
if let poll = draft.poll {

View File

@ -11,7 +11,15 @@ import Pachyderm
struct MainComposeTextView: View {
@ObservedObject var draft: Draft
let placeholder: Text
let placeholder: Text = {
let components = Calendar.current.dateComponents([.month, .day], from: Date())
if components.month == 9 && components.day == 21 {
return Text("Do you remember?")
} else if components.month == 10 && components.day == 31 {
return Text("Post something spooky!")
}
return Text("What's on your mind?")
}()
let minHeight: CGFloat = 150
@State private var height: CGFloat?