Skip to content

Commit

Permalink
Use correct title label text property in README.md (material-componen…
Browse files Browse the repository at this point in the history
  • Loading branch information
heinberg authored and ajsecord committed Jan 2, 2018
1 parent 873e687 commit 5866de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Chips/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ chips.
#### Swift
``` swift
let chipView = MDCChipView()
chipView.title = "Tap me"
chipView.titleLabel.text = "Tap me"
chipView.setTitleColor(UIColor.red, for: .selected)
chipView.sizeToFit()
chipView.addTarget(self, action: #selector(tap), for: .touchUpInside)
Expand All @@ -113,7 +113,7 @@ self.view.addSubview(chipView)

``` objc
MDCChipView *chipView = [[MDCChipView alloc] init];
chipView.title = @"Tap me";
chipView.titleLabel.text = @"Tap me";
[chipView setTitleColor:[UIColor redColor] forState:UIControlStateSelected];
[chipView sizeToFit];
[chipView addTarget:self
Expand Down

0 comments on commit 5866de8

Please sign in to comment.