/telegram_login

After the Intro, users arrive on the login page, where they are invited to enter their mobile phone number and country code — either manually or by selecting their country from a list. You can get a list of countries and codes on countrycode.org or simply exctract it from the source code of other Telegram apps.

Primary LanguageSwiftGNU General Public License v3.0GPL-3.0

Light and Dark theme

Usage

Changing the theme AppDelegate.swift:

  1. Light
  2. Dark
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        
        ThemeManager.setTheme(theme: .Dark)
    
        let theme = ThemeManager.currentTheme()
        ThemeManager.applyTheme(theme: theme)
        
        let mainController = MainTabBarController()
        window = UIWindow(frame: UIScreen.main.bounds)
        window?.rootViewController = mainController
        window?.makeKeyAndVisible()
        window?.backgroundColor = ThemeManager.currentTheme().mainBackgroundColor
        
        presentController(above: mainController)

        return true
    }

Compatibility

Telegram Login is written in Swift 4 and requires iOS 10.0 or later.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details