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

Commit

Permalink
Merge pull request #74 from inloop/bugfix/nil_attributes
Browse files Browse the repository at this point in the history
FIX: UITextfield nil attributes
  • Loading branch information
radimhalfar authored May 22, 2018
2 parents 4050160 + 353b9d4 commit 4478777
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PODS:
- Styles (0.24.14)
- Styles/Tests (0.24.14)
- Styles (0.24.15)
- Styles/Tests (0.24.15)

DEPENDENCIES:
- Styles (from `../`)
Expand All @@ -11,7 +11,7 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
Styles: a3317085cacf0179881a7a18c047bd67e8eaef2c
Styles: 418a756e202ad77bcf2d9556d744037ab31d84f2

PODFILE CHECKSUM: f5341d1bc44d76e5ca1e0d50940004053970d8dc

Expand Down
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/Styles.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Example/Pods/Target Support Files/Styles/Info.plist

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Styles.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Styles'
s.version = '0.24.14'
s.version = '0.24.15'
s.summary = 'UI Elements rapid styling'
s.description = <<-DESC
UIElements styling made easy, declarative and rapid.
Expand Down
8 changes: 7 additions & 1 deletion Styles/Classes/UIElement+Extensions/UITextField+Styles.m
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ - (void)updateStylesForState:(TextInputState)state {
}

- (void)applyTextStyle:(TextStyle *)style {
[self setDefaultTextAttributes:[style attributes]];
NSDictionary *attributes = [style attributes];

if (!attributes) {
return;
}

[self setDefaultTextAttributes:attributes];
}

- (void)applyViewStyle:(ViewStyle *)style {
Expand Down

0 comments on commit 4478777

Please sign in to comment.