FWThemeObject

@interface FWThemeObject<__covariant ObjectType> : NSObject

主题动态对象,可获取当前主题静态对象

  • 创建主题动态对象,分别指定浅色和深色

    Declaration

    Objective-C

    + (nonnull instancetype)objectWithLight:(nullable ObjectType)light
                                       dark:(nullable ObjectType)dark;
  • 创建主题动态对象,指定提供句柄

    Declaration

    Objective-C

    + (nonnull instancetype)objectWithProvider:
        (nonnull ObjectType _Nullable (^)(FWThemeStyle))provider;
  • 获取当前主题静态对象,iOS13+可跟随系统改变

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) ObjectType object;
  • 指定主题样式获取对应静态对象,iOS13+可跟随系统改变

    Declaration

    Objective-C

    - (nullable ObjectType)objectForStyle:(FWThemeStyle)style;