r/iOSProgramming • u/wineandcode • Aug 12 '20
Article Source Code Walkthrough of Telegram-iOS
Most Telegram client apps are open-sourced to prove its gene of security. They also started a new process to allow others to verify the iOS and Android source code is the same version that’s used on AppStore and Google Play. This series of articles is all about Telegram-iOS. The codebase shows its solutions to many practical engineering problems that other iOS engineers would encounter, such as reliable network, secure storage, reactive events, multimedia playback, interactive UX, complex list UI, customization/hacks to system controllers, etc.
13
4
3
1
1
u/stpdprgr Jan 16 '21
I have one question smilingly obvious question about Telegram's code base, but I haven't found the answer anywhere else.
Many files in the code base are just enormous, for instance ChatControllerImpl is 11k loc. Which makes it super hard to navigated around the project, especially taking into account how bad Xcode is with navigating with "go to definition" on big Swift code bases. Can someone explain why they didn't choose to break those massive files into smaller chunks?
1
u/baykarmehmet Jan 24 '24
Is there an updated version of these tutorials?
1
u/ak96 May 06 '24
Looking for the same! I am trying to fork TG-iOS and make my own client! But this codebase is hard to navigate. Did you have any luck?
1
u/baykarmehmet Jun 20 '24
I am working on understanding the source code. I can successfully build and install the app on both a simulator and a real device. However, grasping the entire codebase remains challenging. To manage this, I dedicate each day to reviewing a different module:)
1
17
u/im-here-to-lose-time Aug 12 '20
This is epic