Shhh
This commit is contained in:
parent
d05275020f
commit
5afd9e83eb
|
@ -137,8 +137,7 @@ struct ComposeView: View {
|
|||
}
|
||||
|
||||
MainComposeTextView(
|
||||
draft: draft,
|
||||
placeholder: Text("What's on your mind?")
|
||||
draft: draft
|
||||
)
|
||||
|
||||
if let poll = draft.poll {
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue