Skip to content

Commit

Permalink
Merge pull request #69 from RomanPodymov/main
Browse files Browse the repository at this point in the history
KICamera is nil when using CocoaPods
  • Loading branch information
kimar committed Oct 11, 2023
2 parents f1984b9 + 353d72c commit 591449b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion KIImagePager/KIImagePager/KIImagePager.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ - (void) initalizeImageCounter
_imageCounterBackground.layer.cornerRadius = 5.0f;

UIImageView *icon = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 18, 18)];
[icon setImage:[UIImage imageNamed:@"KICamera"]];
UIImage* image = [UIImage imageNamed:@"KICamera" inBundle:[NSBundle bundleForClass:[KIImagePager class]] compatibleWithTraitCollection:nil];
[icon setImage:image];
icon.center = CGPointMake(_imageCounterBackground.frame.size.width-18, _imageCounterBackground.frame.size.height/2);
[_imageCounterBackground addSubview:icon];

Expand Down

0 comments on commit 591449b

Please sign in to comment.