Fix the wrong changes for tvOS unit tests
This commit is contained in:
parent
71b3d01fd3
commit
aaad37213b
|
@ -31,12 +31,12 @@ NSString *const kTestAPNGPURL = @"https://upload.wikimedia.org/wikipedia/commons
|
||||||
- (UIWindow *)window {
|
- (UIWindow *)window {
|
||||||
if (!_window) {
|
if (!_window) {
|
||||||
#if SD_UIKIT
|
#if SD_UIKIT
|
||||||
#if SD_IOS
|
#if SD_VISION
|
||||||
UIScreen *mainScreen = [UIScreen mainScreen];
|
|
||||||
CGRect screenFrame = mainScreen.bounds;
|
|
||||||
#else
|
|
||||||
CGSize screenSize = CGSizeMake(1280, 720); // https://developer.apple.com/design/human-interface-guidelines/windows#visionOS
|
CGSize screenSize = CGSizeMake(1280, 720); // https://developer.apple.com/design/human-interface-guidelines/windows#visionOS
|
||||||
CGRect screenFrame = CGRectMake(0, 0, screenSize.width, screenSize.height);
|
CGRect screenFrame = CGRectMake(0, 0, screenSize.width, screenSize.height);
|
||||||
|
#else
|
||||||
|
UIScreen *mainScreen = [UIScreen mainScreen];
|
||||||
|
CGRect screenFrame = mainScreen.bounds;
|
||||||
#endif
|
#endif
|
||||||
_window = [[UIWindow alloc] initWithFrame:screenFrame];
|
_window = [[UIWindow alloc] initWithFrame:screenFrame];
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue