WrappingPaper
@interface WrappingPaper : NSObject
A WrappingPaper contains the data to show a wrapping on an EnvelopeView.
-
Contains the image properties of the
WrappingPaper.Declaration
Objective-C
@property (readonly, nonatomic, nullable) ImageModel *imageModel;Swift
var imageModel: ImageModel? { get } -
The primary ribbon color that wraps around the
WrappingPaper.Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) NSString *wrappingRibbonColorHex;Swift
var wrappingRibbonColorHex: String? { get set } -
The secondary ribbon color that wraps around the
WrappingPaper.Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) NSString *wrappingRibbonColorHex2;Swift
var wrappingRibbonColorHex2: String? { get set } -
Internal id used to map
WrappingPaper‘s to theirWrappingPaperCategory.Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *categoryId;Swift
var categoryId: String? { get } -
The title to appear when searching for a
WrappingPaper.Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) NSString *title;Swift
var title: String? { get set } -
The search text that is searched with Google Images for a
WrappingPaper.Declaration
Objective-C
@property (assign, readwrite, nonatomic, nullable) NSString *searchText;Swift
var searchText: String? { get set } -
Default initializer for a
WrappingPaper.Declaration
Objective-C
+ (nonnull WrappingPaper *)wrappingPaperFromDictionary: (nonnull NSDictionary *)dictionary;Swift
/*not inherited*/ init(from dictionary: [AnyHashable : Any])Parameters
dictionary- the dictionary of properties of a
WrappingPaper.Return Value
Instance of
WrappingPaper. -
Converts a
WrappingPaperto an NSDictionary that can be used for caching or sending to the server.Declaration
Objective-C
- (nonnull NSDictionary *)dictionaryRepresentation;Swift
func dictionaryRepresentation() -> [AnyHashable : Any]Return Value
dictionary - Dictionary form of a
WrappingPaper.
View on GitHub
WrappingPaper Class Reference