Meet a simple library for iOS application to combine different images in one UIView like Apple Music album covers. You can use as many images as you want.
Installing with CocoaPods
use_frameworks!
pod 'CombinedView'Add a UIView instance in your .storyboard or .xib, set a CombinedView class, connect an IBOutlet and call combine(images: [UIImage?] func with an array of images.
import CombinedView
class ViewController: UIViewController {
@IBOutlet weak var combinedView: CombinedView!
override func viewDidLoad() {
super.viewDidLoad()
combinedView.combine(images: [UIImage(named: "panda"), UIImage(named: "racoon"), UIImage(named: "tiger"), UIImage(named: "animal")])
}
}Setup CombinedView if needed
override func viewDidLoad() {
super.viewDidLoad()
combinedView.combine(images: [UIImage(named: "panda"), UIImage(named: "racoon"), UIImage(named: "tiger"), UIImage(named: "animal")])
combinedView.cornerRadius = 4
combinedView.startAngle = 0
combinedView.contentMode = .scaleAspectFill
}| Parameter | Description |
|---|---|
| cornerRadius | Sets current view corner radius |
| startAngle | Sets start angle for images rotation |
- IOS 11+
- Initial Build
- Contributions are always welcome
- If you want a feature and can code, feel free to fork and add the change yourself and make a pull request



