This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Data model for color palette | |
@interface CLRPalette : NSObject | |
/// Name of color palette | |
@property (nonatomic, copy) NSString *name; | |
/// List of colors in palette | |
@property (nonatomic, copy) NSArray *colors; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Data model for color palette | |
open class CLRPalette : NSObject { | |
/// Name of color palette | |
open var name: String! | |
/// List of colors in palette | |
open var colors: [Any]! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NS_ASSUME_NONNULL_BEGIN | |
/// Data model for color palette | |
@interface CLRPalette : NSObject | |
/// Name of color palette | |
@property (nonatomic, nullable, copy) NSString *name; | |
/// List of colors in palette | |
@property (nonatomic, copy) NSArray<UIColor *> *colors; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Data model for color palette | |
open class CLRPalette : NSObject { | |
/// Name of color palette | |
open var name: String? | |
/// List of colors in palette | |
open var colors: [CLRColor] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface CLRPalette : NSObject | |
// Init empty color palette | |
- (instancetype)init; | |
// Init color palette with colors | |
- (instancetype)initWithColors:(NSArray<CLRColor *> *)colors; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open class CLRPalette : NSObject { | |
public init() | |
public init(colors: [CLRColor]) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface CLRPalette : NSObject | |
// Init empty color palette | |
- (instancetype)init; | |
// Init color palette with colors | |
- (instancetype)initWithColors:(NSArray<CLRColor *> *)colors NS_DESIGNATED_INITIALIZER; | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open class CLRPalette : NSObject { | |
public convenience init() | |
public init(colors: [CLRColor]) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NS_SWIFT_NAME(Palette) | |
@interface CLRPalette : NSObject | |
@end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open class Palette : NSObject { | |
} |