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