Skip to content

Commit

Permalink
Merge pull request #2 from kfit-dev/bug/page-control-image-assignment…
Browse files Browse the repository at this point in the history
…-issue

[FAVE-18885] Worked on firebase crashes related to FPageControl
  • Loading branch information
Rahul-fave authored Nov 10, 2022
2 parents 5a484f2 + 8e6a41f commit 6b0d429
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FPageControl/FPageControl.m
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ -(void)layoutSubviews {
x += self.dotSize + self.dotSpacing;
}
if (@available(iOS 14.0, *)) {
((UIImageView*)view).image = nil;
if ([view isKindOfClass: [UIImageView class]]) {
((UIImageView*)view).image = nil;
}
if (self.currentPage == i) {
view.backgroundColor = self.currentPageIndicatorTintColor;
} else {
Expand Down

0 comments on commit 6b0d429

Please sign in to comment.