session-ios/SignalMessaging/Views/OWSTextField.m
Michael Kirk e435358bfd Revert "Add custom themed search bar."
This reverts commit 8daaef22da.
2018-08-22 12:00:44 -06:00

38 lines
602 B
Objective-C

//
// 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;
}
@end
NS_ASSUME_NONNULL_END