From 3a1769c81afd899dff0ef80fd46c310a8f1f4763 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Tue, 16 Oct 2018 16:16:19 -0600 Subject: [PATCH] unrelated swift fix --- .../ExperienceUpgrades/ExperienceUpgrade.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Signal/src/environment/ExperienceUpgrades/ExperienceUpgrade.swift b/Signal/src/environment/ExperienceUpgrades/ExperienceUpgrade.swift index 531f3c560..c7c6130f9 100644 --- a/Signal/src/environment/ExperienceUpgrades/ExperienceUpgrade.swift +++ b/Signal/src/environment/ExperienceUpgrades/ExperienceUpgrade.swift @@ -18,6 +18,17 @@ import SignalMessaging super.init(uniqueId: uniqueId) } + @objc + public override init() { + // This is the unfortunate seam between strict swift and fast-and-loose objc + // we can't leave these properties nil, since we really "don't know" that the superclass + // will assign them. + self.title = "New Feature" + self.body = "Bug fixes and performance improvements." + self.image = nil + super.init() + } + @objc public override required init(uniqueId: String?) { // This is the unfortunate seam between strict swift and fast-and-loose objc // we can't leave these properties nil, since we really "don't know" that the superclass