Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 4478777

Browse files
authored
Merge pull request #74 from inloop/bugfix/nil_attributes
FIX: UITextfield nil attributes
2 parents 4050160 + 353b9d4 commit 4478777

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed

Example/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
2-
- Styles (0.24.14)
3-
- Styles/Tests (0.24.14)
2+
- Styles (0.24.15)
3+
- Styles/Tests (0.24.15)
44

55
DEPENDENCIES:
66
- Styles (from `../`)
@@ -11,7 +11,7 @@ EXTERNAL SOURCES:
1111
:path: "../"
1212

1313
SPEC CHECKSUMS:
14-
Styles: a3317085cacf0179881a7a18c047bd67e8eaef2c
14+
Styles: 418a756e202ad77bcf2d9556d744037ab31d84f2
1515

1616
PODFILE CHECKSUM: f5341d1bc44d76e5ca1e0d50940004053970d8dc
1717

Example/Pods/Local Podspecs/Styles.podspec.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/Styles/Info.plist

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Styles.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'Styles'
11-
s.version = '0.24.14'
11+
s.version = '0.24.15'
1212
s.summary = 'UI Elements rapid styling'
1313
s.description = <<-DESC
1414
UIElements styling made easy, declarative and rapid.

Styles/Classes/UIElement+Extensions/UITextField+Styles.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,13 @@ - (void)updateStylesForState:(TextInputState)state {
133133
}
134134

135135
- (void)applyTextStyle:(TextStyle *)style {
136-
[self setDefaultTextAttributes:[style attributes]];
136+
NSDictionary *attributes = [style attributes];
137+
138+
if (!attributes) {
139+
return;
140+
}
141+
142+
[self setDefaultTextAttributes:attributes];
137143
}
138144

139145
- (void)applyViewStyle:(ViewStyle *)style {

0 commit comments

Comments
 (0)