Skip to content

Commit

Permalink
chore(ios): remove unused code in TextView
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwcg committed Jun 17, 2024
1 parent 0c9d9de commit 61ea1a1
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
2 changes: 0 additions & 2 deletions ios/sdk/component/textinput/HippyTextField.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
@interface HippyTextField : HippyBaseTextInput <UITextFieldDelegate>
@property (nonatomic, copy) HippyDirectEventBlock onKeyPress;
@property (nonatomic, assign) BOOL autoCorrect;
//@property (nonatomic, assign) UIEdgeInsets contentInset;
@property (nonatomic, strong) UIColor *placeholderTextColor;
@property (nonatomic, strong) NSString *placeholder;
@property (nonatomic, strong) NSNumber *maxLength;
Expand All @@ -66,7 +65,6 @@
@property (nonatomic, copy) HippyDirectEventBlock onKeyboardHeightChanged;

@property (nonatomic, copy) NSString *value;
@property (nonatomic, strong) NSNumber *fontSize;
@property (nonatomic, strong) NSString *defaultValue;
@property (nonatomic, copy) NSString *text;
@property (nonatomic, strong) UIColor *textColor;
Expand Down
7 changes: 0 additions & 7 deletions ios/sdk/component/textinput/HippyTextField.m
Original file line number Diff line number Diff line change
Expand Up @@ -363,13 +363,6 @@ - (void)setText:(NSString *)text {
_text = text;
}

- (void)setFontSize:(NSNumber *)fontSize {
_fontSize = fontSize;
if ([fontSize floatValue] > 0) {
[_textView setFont:[UIFont systemFontOfSize:[fontSize floatValue]]];
}
}

- (void)setValue:(NSString *)value {
[_textView setText:value];
}
Expand Down
2 changes: 0 additions & 2 deletions ios/sdk/component/textinput/HippyTextView.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
@property (nonatomic, assign) BOOL blurOnSubmit;
@property (nonatomic, assign) BOOL clearTextOnFocus;
@property (nonatomic, assign) BOOL selectTextOnFocus;
//@property (nonatomic, assign) UIEdgeInsets contentInset;
@property (nonatomic, assign) BOOL automaticallyAdjustContentInsets;
@property (nonatomic, copy) NSString *text;
@property (nonatomic, strong) UIColor *placeholderTextColor;
Expand All @@ -64,7 +63,6 @@
- (void)performTextUpdate;

@property (nonatomic, copy) NSString *value;
@property (nonatomic, strong) NSNumber *fontSize;
@property (nonatomic, strong) NSString *defaultValue;
@property (nonatomic, strong) UIColor *textColor;

Expand Down
8 changes: 0 additions & 8 deletions ios/sdk/component/textinput/HippyTextView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -777,14 +777,6 @@ - (void)setValue:(NSString *)value {
[self setText:value];
}

- (void)setFontSize:(NSNumber *)fontSize {
_fontSize = fontSize;

if ([fontSize floatValue] > 0) {
[self setFont:[UIFont systemFontOfSize:[fontSize floatValue]]];
}
}

- (void)setDefaultValue:(NSString *)defaultValue {
if (defaultValue) {
[self setText:defaultValue];
Expand Down

0 comments on commit 61ea1a1

Please sign in to comment.