-
Notifications
You must be signed in to change notification settings - Fork 1
/
ClockKit+Convenience.h
42 lines (31 loc) · 1.17 KB
/
ClockKit+Convenience.h
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
37
38
39
40
41
42
//
// ClockKit+Convenience.h
// Sleep Diary
//
// Created by Alexander Ivanov on 12.10.16.
// Copyright © 2016 Alexander Ivanov. All rights reserved.
//
#import <ClockKit/ClockKit.h>
#import "NSObject+Convenience.h"
typedef enum : NSUInteger {
CLKComplicationFamilyMemberRingImage,
CLKComplicationFamilyMemberRingText,
CLKComplicationFamilyMemberSimpleImage,
CLKComplicationFamilyMemberSimpleText,
CLKComplicationFamilyMemberStackImage,
CLKComplicationFamilyMemberStackText,
} CLKComplicationFamilyMember;
@interface CLKComplicationTemplate (Convenience)
- (void)setText:(CLKTextProvider *)value;
- (void)setRing:(CLKComplicationRingStyle)value;
- (void)setFill:(float)value;
- (void)setImage:(UIImage *)value;
- (void)setText:(NSString *)value shortText:(NSString *)text;
- (void)setFill:(float)value tintColor:(UIColor *)color;
- (void)setImage:(UIImage *)value tintColor:(UIColor *)color;
+ (CLKComplicationTemplate *)createWithFamily:(CLKComplicationFamily)family member:(CLKComplicationFamilyMember)member;
@end
@interface CLKComplicationServer (Convenience)
- (void)extendTimeline:(CLKComplication *)complication;
- (void)reloadTimeline:(CLKComplication *)complication;
@end