Open T-Pham opened 8 years ago
The method - (UIImage *)image in the UIView+Image category causes an error in Swift projects. The error message is:
- (UIImage *)image
UIView+Image
getter for 'image' with Objective-C selector 'image' conflicts with method 'image()' from superclass 'UIView' with the same Objective-C selector
Assignments to the image property of UIImageView in Swift with .image = will also get Cannot assign to property: 'self' is immutable error.
image
UIImageView
.image =
Cannot assign to property: 'self' is immutable
This pull request attempts to fix those errors.
This PR works for me!
Thanks T-Pham. I'm working on a Swift replacement. The WIP is at https://gist.github.com/mindbrix/bb1cb1d6260d024c08a3ae3fd79cf723
Does this suit your needs?
The method
- (UIImage *)image
in theUIView+Image
category causes an error in Swift projects. The error message is:Assignments to the
image
property ofUIImageView
in Swift with.image =
will also getCannot assign to property: 'self' is immutable
error.This pull request attempts to fix those errors.