session-ios/SignalMessaging/Views/OWSTextField.m

38 lines
602 B
Mathematica
Raw Normal View History

2018-08-15 23:09:59 +02:00
//
// Copyright (c) 2018 Open Whisper Systems. All rights reserved.
//
#import "OWSTextField.h"
#import "Theme.h"
NS_ASSUME_NONNULL_BEGIN
@implementation OWSTextField
- (instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
[self ows_applyTheme];
}
return self;
}
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder
{
if (self = [super initWithCoder:aDecoder]) {
[self ows_applyTheme];
}
return self;
}
- (void)ows_applyTheme
{
self.keyboardAppearance = Theme.keyboardAppearance;
2018-08-15 23:09:59 +02:00
}
@end
NS_ASSUME_NONNULL_END