Procházet zdrojové kódy

【VisionPro适配】适配VisionOS

xcbosa mbp16 před 1 rokem
rodič
revize
a7026f7155

+ 1 - 0
XCTheme/Classes/Business/XCThemeSpecModel.h

@@ -29,6 +29,7 @@ NS_ASSUME_NONNULL_BEGIN
 @property (nonatomic, copy, readonly, nullable) NSString *titleChinese;
 @property (nonatomic, copy, readonly, nullable) NSString *titleChinese;
 @property (nonatomic, copy, readonly, nullable) NSString *titleEnglish;
 @property (nonatomic, copy, readonly, nullable) NSString *titleEnglish;
 @property (nonatomic, assign, readonly) BOOL useSystemAppearance;
 @property (nonatomic, assign, readonly) BOOL useSystemAppearance;
+@property (nonatomic, assign, readonly) UIUserInterfaceStyle interfaceStyle;
 
 
 @property (nonatomic, copy, nullable) NSString *businessBannerImage;
 @property (nonatomic, copy, nullable) NSString *businessBannerImage;
 
 

+ 4 - 0
XCTheme/Classes/Business/XCThemeSpecModel.m

@@ -112,4 +112,8 @@
     }
     }
 }
 }
 
 
+- (UIUserInterfaceStyle)interfaceStyle {
+    return self.wrappedObject.interfaceStyle;
+}
+
 @end
 @end