-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDLSPropertyDescription.h
More file actions
36 lines (24 loc) · 1.01 KB
/
Copy pathDLSPropertyDescription.h
File metadata and controls
36 lines (24 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// DLSPropertyDescription.h
// Dials-iOS
//
// Created by Akiva Leffert on 3/14/15.
// Copyright (c) 2015 Akiva Leffert. All rights reserved.
//
#import <Foundation/Foundation.h>
@class DLSPropertyWrapper;
@protocol DLSEditor;
NS_ASSUME_NONNULL_BEGIN
@interface DLSPropertyDescription : NSObject <NSCoding>
+ (DLSPropertyDescription*)propertyDescriptionWithName:(NSString*)name editor:(id <DLSEditor>)editor;
+ (DLSPropertyDescription*)propertyDescriptionWithName:(NSString*)name editor:(id <DLSEditor>)editor label:(nullable NSString*)label;
@property (readonly, nonatomic) DLSPropertyDescription* (^setLabel)(NSString* label);
/// Editor to use for this property
@property (readonly, strong, nonatomic) id <DLSEditor> editor;
/// Should be unique within a class and its parents
@property (readonly, copy, nonatomic) NSString* name;
/// User facing label for this property.
/// If nil, the "name" property will be used for display
@property (readonly, copy, nonatomic) NSString* label;
@end
NS_ASSUME_NONNULL_END