New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need tutorial for custom new module #566
Comments
X |
How are you planning to use this module? |
@ali-fareed I want to add the UIViewcontroller into the Telegram Tabbar. I try to custom a new viewcontroller. I naively thought that adding was simply creating a directory in submodules, and writing Bazel scripts. It built successfully, but it's not contain in the Xcode project. What step was I missing? Can you help me? give me a keyword, I will research for it. |
I'm afraid it would take a lot of effort to describe the general architecture of the app. I would recommend reading https://hubo.dev/tags/#Telegram |
@ali-fareed thank you very much. I think having this source code for research is the best thing a dev has. |
Unfortunately you will not be able to use Storyboards due to AsyncDisplayKit restrictions which is (partially) used in Telegram sources. I've made some attempts to integrate some basic UIViewControllers and additional tab bar icons in app, but unfortunately whole project is based on custom ViewControllers (mostly based on AsyncDisplayKit stuff) and it requires a lot of work to adapt them (edges, colors, swipes, navigation and etc.) So I assume it's really better to integrate something based on AsyncDisplayKit
|
Try to declare your module as a dependency for other module (eg. submodules/TelegramUI/BUILD) or in main app file (Telegram-iOS/BUILD) Also, take a look at Nicegram example |
@Kylmakalle thank you very much. Can you give me your telegram or twitter? |
Telegram Is the same as on github |
I create a my submodule, and I want to add into exist telegram source code.
The forder is:
Telegram-iOS/submodules/QModule
contains:
My script in BUILD file is:
When I run generate with script:
It build success. But I can't find my module. What step am I missed?
The text was updated successfully, but these errors were encountered: