ShadowImageView alternatives and similar libraries
Based on the "Image" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of ShadowImageView or a related project?
A apple music cover picture shadow style image library
ShadowImageView is a iOS 10 Apple Music style image view, help you create elegent image with shadow.
[ShadowOffsetRight](Screenshots/Rightoffset.png) [Nooffset](Screenshots/NoOffset.png) [largeRadius](Screenshots/largeRadius.png)
[lotus](Screenshots/lotus.png) [Mountain](Screenshots/Mountain.png) [CD1](Screenshots/CD1.png) [CD2](Screenshots/CD2.png)
- [x] Auto resizing based on content mode.
- [x] Easy to change paramenters including offset, radius, alpha etc.
- [x] Storyboard(Nib) support.
- [ ] Add support for UIView.
- [ ] Change the way of layout, to minimize the resource usa.
You can use CocoaPods to install
ShadowImageView by adding it to your
platform :ios, '8.0' use_frameworks! pod 'ShadowImageView'
Cartfile that lists the framework and run
carthage update. Follow the instructions to add
$(SRCROOT)/Carthage/Build/iOS/YourLibrary.framework to an iOS project.
- Download and drop
ShadowImageView.swiftin your project.
/// Gaussian Blur radius, larger will make the back ground shadow lighter (warning: do not set it too large, 2 or 3 for most cases) @IBInspectable public var blurRadius: CGFloat /// The image view contains target image @IBInspectable public var image: UIImage /// Image's corner radius @IBInspectable public var imageCornerRaidus: CGFloat /// shadow radius offset in percentage, if you want shadow radius larger, set a postive number for this, if you want it be smaller, then set a negative number @IBInspectable public var shadowRadiusOffSetPercentage: CGFloat /// Shadow offset value on x axis, postive -> right, negative -> left @IBInspectable public var shadowOffSetByX: CGFloat /// Shadow offset value on y axis, postive -> right, negative -> left @IBInspectable public var shadowOffSetByY: CGFloat /// Shadow alpha value @IBInspectable public var shadowAlpha: CGFloat
If you want to add by storyboard or nib, just drap a UIView into your canvas, and change the class to ShadowImageView, you will see the change in storyboard or nib, it is @IBDesignable supported.
- iOS 8.0+
- Swift 3+
The main development of ShadowImageView is based on Swift 3.
ShadowImageView is released under the MIT license. See LICENSE for details.
App using ShadowImageView
*Note that all licence references and agreements mentioned in the ShadowImageView README section above are relevant to that project's source code only.