https://github.com/vrgsoftua/combinedview
Library for iOS application to combine different images in one UIView.
https://github.com/vrgsoftua/combinedview
Last synced: about 1 year ago
JSON representation
Library for iOS application to combine different images in one UIView.
- Host: GitHub
- URL: https://github.com/vrgsoftua/combinedview
- Owner: VRGsoftUA
- License: mit
- Created: 2019-05-08T14:17:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-08T16:11:04.000Z (about 7 years ago)
- Last Synced: 2025-04-16T02:19:30.902Z (about 1 year ago)
- Language: Swift
- Size: 1000 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
#### [HIRE US](http://vrgsoft.net/)
# CombinedView
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](https://cocoapods.org)
```ruby
use_frameworks!
pod 'CombinedView'
```
### Usage
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.
```swift
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
```swift
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
}
```

# Customization
| Parameter | Description |
| ------------- | ------------- |
| cornerRadius | Sets current view corner radius |
| startAngle | Sets start angle for images rotation |
## Compatibility
* IOS 11+
## Changelog
### Version: 1.0
* Initial Build
## Contributors
* 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