mirror of
https://github.com/XITRIX/NXKit.git
synced 2026-05-30 11:46:52 +00:00
38 lines
1.4 KiB
C++
38 lines
1.4 KiB
C++
#include <UIApplicationDelegate.h>
|
|
#include <UIImageView.h>
|
|
#include <UILabel.h>
|
|
#include <DispatchQueue.h>
|
|
#include <Screens/TestViewController/TestViewController.hpp>
|
|
#include <Screens/IBTestController/IBTestController.h>
|
|
#include <Screens/YogaTestViewController/YogaTestViewController.hpp>
|
|
#include <Screens/NXTextScreen/NXNavigationController.h>
|
|
#include <Screens/NXTextScreen/NXTabBarController.h>
|
|
// #include <NavigationViewController/NavigationViewController.hpp>
|
|
// #include <TextViewController/TextViewController.hpp>
|
|
#include <romfs/romfs.hpp>
|
|
|
|
namespace NXKit {
|
|
|
|
bool UIApplicationDelegate::applicationDidFinishLaunchingWithOptions(UIApplication* application, std::map<std::string, std::any> launchOptions) {
|
|
DEFAULT_ROMFS_REGISTRATION
|
|
window = new_shared<UIWindow>();
|
|
|
|
auto vc1 = new_shared<TestViewController>();
|
|
auto vc = new_shared<IBTestController>();
|
|
std::vector<std::shared_ptr<UIViewController>> vcs = { vc, vc1 };
|
|
|
|
auto tbvc = new_shared<NXTabBarController>( vcs );
|
|
auto nvc = new_shared<NXNavigationController>(tbvc);
|
|
// auto vc = new_shared<YogaTestViewController>();
|
|
// auto vc = new_shared<NavigationViewController>();
|
|
// auto vc = new_shared<TextViewController>();
|
|
window->setRootViewController(nvc);
|
|
window->makeKeyAndVisible();
|
|
// window->setBackgroundColor(UIColor::systemBackground);
|
|
window->setBackgroundColor(UIColor::secondarySystemBackground);
|
|
|
|
return true;
|
|
}
|
|
|
|
}
|