Files
ichmagmaus111andClaude Opus 5.5 0622057a4f Ghostgram: open-source release
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:57:09 +01:00

27 lines
1.0 KiB
Swift

import Foundation
import Display
import AccountContext
import GGSettingsUI
// GHOST: Ghostgram's menu in Telegram's own settings search. The places come from GGSettingsUI
// (`ggSettingsSearchItems`), the same index the Ghostgram root screen searches; breadcrumbs start
// at «Ghostgram», and opening a result pushes the screen and highlights the row — through the
// menu's access gates (a locked category asks for the code first, possibly pushing later).
func ggSettingsSearchableItems(context: AccountContext) -> [SettingsSearchableItem] {
return ggSettingsSearchItems(context: context).map { item in
let open = item.open
return SettingsSearchableItem(
id: item.id,
title: item.title,
alternate: item.keywords,
icon: .ghostgram,
breadcrumbs: item.breadcrumbs,
present: { context, _, present in
open(context, { controller in
present(.push, controller)
})
}
)
}
}