forked from stefanceriu/SCStackViewController
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSCStackNavigationStep.m
More file actions
48 lines (35 loc) · 1.1 KB
/
Copy pathSCStackNavigationStep.m
File metadata and controls
48 lines (35 loc) · 1.1 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
37
38
39
40
41
42
43
44
45
46
47
48
//
// SCStackNavigationStep.m
// SCStackViewController
//
// Created by Stefan Ceriu on 15/01/2014.
// Copyright (c) 2014 Stefan Ceriu. All rights reserved.
//
#import "SCStackNavigationStep.h"
@interface SCStackNavigationStep ()
@property (nonatomic, assign) CGFloat percentage;
@end
@implementation SCStackNavigationStep
+ (instancetype)navigationStepWithPercentage:(CGFloat)percentage
{
return [[SCStackNavigationStep alloc] initWithPercentage:percentage];
}
+ (instancetype)navigationStepWithPercentage:(CGFloat)percentage blockType:(SCStackNavigationStepBlockType)blockType
{
return [[SCStackNavigationStep alloc] initWithPercentage:percentage blockType:blockType];
}
- (instancetype)initWithPercentage:(CGFloat)percentage
{
if(self = [self initWithPercentage:percentage blockType:SCStackNavigationStepBlockTypeNone]) {
}
return self;
}
- (instancetype)initWithPercentage:(CGFloat)percentage blockType:(SCStackNavigationStepBlockType)blockType
{
if(self = [super init]) {
_percentage = percentage;
_blockType = blockType;
}
return self;
}
@end