mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
4e93bec230
- cancel/done buttons - no navbar for modal edit - vertically center image // FREEBIE
26 lines
825 B
Objective-C
26 lines
825 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
typedef void (^ConfigureShapeLayerBlock)(CAShapeLayer *_Nonnull layer, CGRect bounds);
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface OWSBezierPathView : UIView
|
|
|
|
// Configure the view with this method if it uses a single Bezier path.
|
|
@property (nonatomic) ConfigureShapeLayerBlock configureShapeLayerBlock;
|
|
|
|
// Configure the view with this method if it uses multiple Bezier paths.
|
|
//
|
|
// Paths will be rendered in back-to-front order.
|
|
@property (nonatomic) NSArray<ConfigureShapeLayerBlock> *configureShapeLayerBlocks;
|
|
|
|
// This method forces the view to reconstruct its layer content. It shouldn't
|
|
// be necessary to call this unless the ConfigureShapeLayerBlocks depend on external
|
|
// state which has changed.
|
|
- (void)updateLayers;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|