Light-weight Onboard/Walkthrough UIView/UIImage representer ⏪ & ⏩ ⏫ & ⏬
Hola
is a UIView
that represent several views or images as View Pager
, Onboard
Walkthrough
in different direction as Vertical
or Horizontal
. Its a subclass of UIView
.
## Support for Storyboard
@IBOutlet weak var holaView: Hola!
override func viewDidLoad() {
super.viewDidLoad()
let _image1: UIImage = UIImage(named:"image1")!
let _image2: UIImage = UIImage(named:"image2")!
let _image3: UIImage = UIImage(named:"image3")!
let _image4: UIImage = UIImage(named:"image2")!
let imageArray: [UIImage] = [_image1,_image2,_image3,_image4]
let viewArray: [UIView] = [...........yourViews]
holaView.prepareImagesForStoryboard(uiimageArray: imageArray, rotation: .vertical)
holaView.prepareViewsForStoryboard(viewArray: viewArray, rotation: .horizontal)
}
public init(frame: CGRect, viewArray uiviewArray:[UIView], _ rotation: rotationWay)
If you build pager with array of UIView
you should use this init
function.
let simple: Hola = Hola(frame: CGRect(), viewArray: viewArray, .horizontal)
Another `init function`
```swift
public init(frame: CGRect, imageArray uiimageArray:[UIImage],_ rotation:rotationWay)
For creating Hola
with array of UIImage
, use this init
function to generate it.
Here is the another example for usage
.
let simple: Hola = Hola(frame: CGRect(), imageArray: imageArray, .vertical)
public enum rotationWay {
case horizontal
case vertical
}
rotationWay
is used for specify Hola
’s rotation as horizontal
horizontal or vertical
.
git clone REPO_URL
cd Hola/
use Hola.swift
Want to contribute?
Feel free to contribute anything on this with describing contributed part
MIT
❤ Open Source