TOCropViewController
TOCropViewController copied to clipboard
xcode TOCropToolbar.m UIImage 7 error : Use of undeclared identifier 'UIImageSymbolConfiguration'
7 error in TOCropToolbar.m file
xcode: 10.1
1:
if (@available(iOS 13.0, *)) {
UIImage *image = button.imageView.image;
button.imageEdgeInsets = UIEdgeInsetsMake(0, 0, image.baselineOffsetFromBottom, 0);
}'
error: Property 'baselineOffsetFromBottom' not found on object of type 'UIImage *'
2,3,4,5,6,7:
if (@available(iOS 13.0, *)) {
return [UIImage systemImageNamed:@"checkmark"
withConfiguration:[UIImageSymbolConfiguration configurationWithWeight:UIImageSymbolWeightSemibold]];
}
error: Use of undeclared identifier 'UIImageSymbolConfiguration'
?
Ah. I guess when I added that, I set Xcode 11 to be the base version that this library supports. It should be easy enough to convert that to defines instead.
Is there any particular reason why you're still using Xcode 10?
hi ! how to convert ? yes! my same library package just work in xcode 10
@TimOliver Do you have any suggestions?
@pl4ten solve that?