Comments (5)
Any idea why it's not working as expected? Or am I doing something wrong?
from uiimageviewalignedswift.
just noticed it seems to work if I set the image after initialization of the imageView as follows:
imageView.image = UIImage(named: "my-image")
Seems like a bug.
from uiimageviewalignedswift.
For some reason this library does not compile for an archived app version when checked out via Carthage
. FWIW: I've subclassed your as follows - this refuses to compile for the app store:
import UIKit
import UIImageViewAlignedSwift
class ChartImageView: UIImageViewAligned{
var imageMaskingColorComponents: [CGFloat]?
var imageTintColor: UIColor?
override var image: UIImage?{
get{
return super.image
}
set{
var newImage = newValue
if let color = self.imageTintColor{
newImage = newImage?.applied(tintColor: color)
} else if let colorComponents = self.imageMaskingColorComponents{
newImage = newImage?.masked(withColorComponents: colorComponents)
}
super.image = newImage
}
}
}
from uiimageviewalignedswift.
I've just stepped into the same problem. Thanks for the hint. Seems like a bug.
from uiimageviewalignedswift.
@marbetschar @piotrros It's fixed since 0.4.0. In addition scaling
is not available, as long as it doesn't work as desired.
Not sure about Carthage, because I don't use it and my knowledge about this is really poor. Please PR if you know how to fix this 👍
from uiimageviewalignedswift.
Related Issues (20)
- Swift 3 HOT 2
- Swift 2.3 HOT 2
- Pod -> 0.1 installs 0.3.1 HOT 2
- Images are not displayed on a device but are shown in storyboard HOT 4
- Dismissing ViewControllers above causes UI bug HOT 11
- Interface builder designable fails to compile HOT 2
- required code signature missing
- Tag Carthage Updates HOT 1
- iOS 11 specific code question. HOT 2
- Image duplication in iOS 13b1 HOT 3
- Image duplication in iOS 13b3 [BUG] HOT 10
- Image duplication in iOS 13b5 [BUG] HOT 8
- Swift Package Manager Support
- The original unaligned image appear when presenting a UIAlertController, overlapping with the aligned image. HOT 5
- ImageAlign not working
- IOS 14 Issue - Image Background Color Issue
- Property alignTop HOT 3
- storyboard problem HOT 1
- Any example? HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uiimageviewalignedswift.