Nothing to see here

This commit is contained in:
Shadowfacts 2022-10-31 16:09:40 -04:00
parent a18dfc38af
commit 508eef8c07
1 changed files with 11 additions and 3 deletions

View File

@ -11,12 +11,20 @@ import Pachyderm
struct MainComposeTextView: View {
@ObservedObject var draft: Draft
let placeholder: Text = {
@State private var placeholder: Text = {
let components = Calendar.current.dateComponents([.month, .day], from: Date())
if components.month == 9 && components.day == 21 {
if components.month == 3 && components.day == 14 {
if Date().formatted(date: .numeric, time: .omitted).starts(with: "3") {
return Text("Happy π day!")
}
} else if components.month == 9 && components.day == 21 {
return Text("Do you remember?")
} else if components.month == 10 && components.day == 31 {
if .random() {
return Text("Post something spooky!")
} else {
return Text("Any questions?")
}
}
return Text("What's on your mind?")
}()