It's simple way to show some images with text in yours iOS appication
- Fixed some bugs
- Some litte fixes
- AdvertisingSliderDelegate (See below description)
- Added possibility to use URL's instead UIImages
**pod 'AdvertisingSlider', '0.9.9'
Just put UIView in your xib or storyboard and change class name on "AdvertisingSlider"
func pagesCount(forSlider: AdvertisingSlider) -> Int
func imageForIndex(_ index: Int, slider: AdvertisingSlider) -> UIImage?
func textForIndex(_ index: Int, slider: AdvertisingSlider) -> String
func urlStringToDownload(image index: Int, slider: AdvertisingSlider) -> String?
Warning: if you return UIImage and URL for same index, UIImage uses
func didItemPressed(_ index: Int, slider: AdvertisingSlider) -> Void
func didPageChanged(_ index: Int, slider: AdvertisingSlider) -> Void
For reload view use func reloadData()
Functions nextPage() and previousPage() are switching pages, if you'll want to make it with other component
If you want to go some any page you can use func moveToPage(_ index: Int, animated: Bool)
This component can used with 2 ways: for showing only images (by swipe) or showing images and text (by buttons)
For choosing first one - swith property scrollingManually to true. It false by default.
When "scrollingManually == false" AdvertisingSlider has UIView over images. You can change color and alpha channel for it. To do this use: 'overViewColor', 'overViewAlpha'
activePageColor == currentPageIndicatorTintColor
pageColor == pageIndicatorTintColor
Set 'pageControlInteraction = true' if you want to change current page by tap on page control. It false by default
Set 'pageControlOverImages = true' if you don't want to see white background under page control. It false by default
textColor
font
textRows == numberOfLines (UILabel)
Use 'defaultText' when you want to show some message while no data. It doesn't work when 'scrollingManually == true'