From 508eef8c07ccb6fac04f70daf195d120cb86f58f Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 31 Oct 2022 16:09:40 -0400 Subject: [PATCH] Nothing to see here --- Tusker/Screens/Compose/MainComposeTextView.swift | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Tusker/Screens/Compose/MainComposeTextView.swift b/Tusker/Screens/Compose/MainComposeTextView.swift index f98ec04859..2d1975ddf8 100644 --- a/Tusker/Screens/Compose/MainComposeTextView.swift +++ b/Tusker/Screens/Compose/MainComposeTextView.swift @@ -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 { - return Text("Post something spooky!") + if .random() { + return Text("Post something spooky!") + } else { + return Text("Any questions?") + } } return Text("What's on your mind?") }()