From 5afd9e83eb0b4cac0730a610704fa94924167e1b Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 30 Oct 2022 14:47:36 -0400 Subject: [PATCH] Shhh --- Tusker/Screens/Compose/ComposeView.swift | 3 +-- Tusker/Screens/Compose/MainComposeTextView.swift | 10 +++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Tusker/Screens/Compose/ComposeView.swift b/Tusker/Screens/Compose/ComposeView.swift index 3470d9de..5cfab82f 100644 --- a/Tusker/Screens/Compose/ComposeView.swift +++ b/Tusker/Screens/Compose/ComposeView.swift @@ -137,8 +137,7 @@ struct ComposeView: View { } MainComposeTextView( - draft: draft, - placeholder: Text("What's on your mind?") + draft: draft ) if let poll = draft.poll { diff --git a/Tusker/Screens/Compose/MainComposeTextView.swift b/Tusker/Screens/Compose/MainComposeTextView.swift index 8c8e6135..f98ec048 100644 --- a/Tusker/Screens/Compose/MainComposeTextView.swift +++ b/Tusker/Screens/Compose/MainComposeTextView.swift @@ -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?