Skip to content

Commit

Permalink
Limit viewForBaselineLayout to non-TVOS targets. [ObjC]
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Jun 7, 2018
1 parent 9103c44 commit 9c09342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ObjC/MarqueeLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ - (void)setBounds:(CGRect)bounds {

#pragma mark - Modified UILabel Methods/Getters/Setters

#if __IPHONE_OS_VERSION_MAX_ALLOWED < 100000
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 100000 && !(TARGET_OS_TV)
- (UIView *)viewForBaselineLayout {
// Use subLabel view for handling baseline layouts
return self.subLabel;
Expand Down

0 comments on commit 9c09342

Please sign in to comment.