mirror of
https://github.com/gosticks/PiPer.git
synced 2026-10-06 23:46:56 +00:00
Added new holiday emoticons
Added donation emoticons for New Year's and Valentine's Day
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -10,7 +10,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string></string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>193</string>
|
||||
<string>194</string>
|
||||
<key>Developer Identifier</key>
|
||||
<string>BQ6Q24MF9X</string>
|
||||
<key>URL</key>
|
||||
|
||||
@@ -149,6 +149,10 @@ class DonationManager {
|
||||
let emoticons = Array({
|
||||
() -> String in
|
||||
switch Calendar.current.dateComponents([.month, .weekdayOrdinal, .weekday, .day], from: Date()) {
|
||||
case let date where date.month == 1 && date.day == 1: // New Years
|
||||
return "🕛🥂🍾🎊"
|
||||
case let date where date.month == 2 && date.day == 14: // Valentine's Day
|
||||
return "🥀🌹💋💘"
|
||||
case let date where date.month == 10 && date.day == 31: // Halloween
|
||||
return "💀👻🧙♀️🎃"
|
||||
case let date where date.month == 11 && date.weekdayOrdinal == 4 && date.weekday == 5: // Thanksgiving
|
||||
|
||||
Reference in New Issue
Block a user