Skip to content

Commit 88d3322

Browse files
committed
Add support for storyboard
1 parent 8d94369 commit 88d3322

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

TONavigationBar/TONavigationBar.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ @implementation TONavigationBar
4545

4646
#pragma mark - View Creation -
4747

48+
- (instancetype)initWithCoder:(NSCoder *)coder
49+
{
50+
if (self = [super initWithCoder:coder]) {
51+
_backgroundView = [[UIVisualEffectView alloc] initWithEffect:nil];
52+
_separatorView = [[UIView alloc] initWithFrame:CGRectZero];
53+
_separatorHeight = 1.0f / [UIScreen mainScreen].scale;
54+
}
55+
return self;
56+
}
57+
4858
- (instancetype)initWithFrame:(CGRect)frame
4959
{
5060
if (self = [super initWithFrame:frame]) {

0 commit comments

Comments
 (0)