zioinfo-mail/app/node_modules/expo-splash-screen/ios/EXSplashScreen/EXSplashScreenViewNativeProvider.m
DESKTOP-TKLFCPR\ython 11c670f2a0 refactor: 101.79.17.164 → zioinfo.co.kr 전체 도메인 변환 + Manager UI 배포
- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스)
- Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포
- 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 10:09:17 +09:00

52 lines
2.8 KiB
Objective-C

// Copyright © 2018 650 Industries. All rights reserved.
#import <EXSplashScreen/EXSplashScreenViewNativeProvider.h>
#import <ExpoModulesCore/EXLogManager.h>
@implementation EXSplashScreenViewNativeProvider
- (nonnull UIView *)createSplashScreenView
{
NSString *splashScreenFilename = (NSString *)[[NSBundle mainBundle] objectForInfoDictionaryKey:@"UILaunchStoryboardName"] ?: @"SplashScreen";
UIStoryboard *storyboard;
@try {
storyboard = [UIStoryboard storyboardWithName:splashScreenFilename bundle:[NSBundle mainBundle]];
} @catch (NSException *_) {
EXLogWarn([NSString stringWithFormat:@"'%@.storyboard' file is missing. Fallbacking to '%@.xib' file.", splashScreenFilename, splashScreenFilename]);
}
if (storyboard) {
@try {
UIViewController *splashScreenViewController = [storyboard instantiateInitialViewController];
UIView *splashScreenView = splashScreenViewController.view;
return splashScreenView;
} @catch (NSException *_) {
@throw [NSException exceptionWithName:@"ERR_INVALID_SPLASH_SCREEN"
reason:[NSString stringWithFormat:@"'%@.storyboard'does not contain proper ViewController. Add correct ViewController to your '%@.storyboard' file (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-ios).", splashScreenFilename, splashScreenFilename]
userInfo:nil];
}
}
NSArray *views;
@try {
views = [[NSBundle mainBundle] loadNibNamed:splashScreenFilename owner:self options:nil];
} @catch (NSException *_) {
EXLogWarn([NSString stringWithFormat:@"'%@.xib' file is missing - 'expo-splash-screen' will not work as expected.", splashScreenFilename]);
}
if (views) {
if (!views.firstObject) {
@throw [NSException exceptionWithName:@"ERR_INVALID_SPLASH_SCREEN"
reason:[NSString stringWithFormat:@"'%@.xib' does not contain any views. Add a view to the '%@.xib' or create '%@.storyboard' (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-ios).", splashScreenFilename, splashScreenFilename, splashScreenFilename]
userInfo:nil];
}
UIView *view = views.firstObject;
view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
return view;
}
@throw [NSException exceptionWithName:@"ERR_NO_SPLASH_SCREEN"
reason:[NSString stringWithFormat:@"Couln't locate neither '%@.storyboard' file nor '%@.xib' file. Create one of these in the project to make 'expo-splash-screen' work (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-ios).", splashScreenFilename, splashScreenFilename]
userInfo:nil];
}
@end