TOCropViewController icon indicating copy to clipboard operation
TOCropViewController copied to clipboard

xcode TOCropToolbar.m UIImage 7 error : Use of undeclared identifier 'UIImageSymbolConfiguration'

Open platinstudio opened this issue 4 years ago • 4 comments

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'

?

platinstudio avatar Jan 17 '21 14:01 platinstudio

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?

TimOliver avatar Jan 17 '21 16:01 TimOliver

hi ! how to convert ? yes! my same library package just work in xcode 10

platinstudio avatar Jan 18 '21 08:01 platinstudio

@TimOliver Do you have any suggestions?

platinstudio avatar Jan 20 '21 11:01 platinstudio

@pl4ten solve that?

JodiRaina avatar Aug 18 '21 03:08 JodiRaina