mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Business intro screen
This commit is contained in:
@@ -279,13 +279,13 @@ private func premiumSearchableItems(context: AccountContext) -> [SettingsSearcha
|
||||
var result: [SettingsSearchableItem] = []
|
||||
|
||||
result.append(SettingsSearchableItem(id: .premium(0), title: strings.Settings_Premium, alternate: synonyms(strings.SettingsSearch_Synonyms_Premium), icon: icon, breadcrumbs: [], present: { context, _, present in
|
||||
present(.push, PremiumIntroScreen(context: context, modal: false, source: .settings))
|
||||
present(.push, PremiumIntroScreen(context: context, source: .settings, modal: false))
|
||||
}))
|
||||
|
||||
let presentDemo: (PremiumDemoScreen.Subject, (SettingsSearchableItemPresentation, ViewController?) -> Void) -> Void = { subject, present in
|
||||
var replaceImpl: ((ViewController) -> Void)?
|
||||
let controller = PremiumDemoScreen(context: context, subject: subject, action: {
|
||||
let controller = PremiumIntroScreen(context: context, modal: false, source: .settings)
|
||||
let controller = PremiumIntroScreen(context: context, source: .settings, modal: false)
|
||||
replaceImpl?(controller)
|
||||
})
|
||||
replaceImpl = { [weak controller] c in
|
||||
|
||||
Reference in New Issue
Block a user