- Notifications
You must be signed in to change notification settings - Fork9
An elegant animated slideshow written in swift
License
v15a1/Glideshow
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A slideshow withpizzazz! Glideshow adds transitions to the slideshows labels to set it apart from other conventional "boring" slideshows,
The Glideshow project is available viaCocoaPods. To install it, simply add the following line to your Podfile:
pod 'Glideshow'Addhttps://github.com/v15a1/Glideshow as a Swift Package in Xcode and follow the instructions.
Add a Glideshow view to your view hiearchy by Interface Builder or programmatically
The contents of the slideshow can be set with the use ofGlideItem as demonstrated below. Further customizations can be configured as mentioned in theConfiguration section
NOTE : Setting theglideFactorto 0 will result in the labels being stationary
// @IBOutlet weak var glideshow : Glideshow!varglideshow=Glideshow()glideshow.items=[GlideItem(title:"Hello there", description:"General Kenobi!", backgroundImage:UIImage(named:"image1")),GlideItem(description:"General Kenobi!", backgroundImage:UIImage(named:"image2")),GlideItem(title:"Hello there", backgroundImage:UIImage(named:"image3")),GlideItem(title:"Hello there", description:"General Kenobi!") // Network images GlideItem(caption:"Hello there", description:"General Kenobi!", imageURL:"[ IMAGE URL ]")]
The behaviour is configurable by the following properties
| Property | Description |
|---|---|
interval | Slideshow interval is seconds ( Default 0 ) |
isCircular | Enables circular scrolling ( Defaulttrue ) |
slideMargin | Margin of the slides to theUICollectionView |
slidePadding | Padding of the content |
defaultSlideColor | Background color of the slides ( DefaultUIColor.lightGray ) |
labelSpacing | Vertical spacing between labels within a slide ( Default 8 ) |
isGradientEnabled | Displays gradient in the slide ( Defaultfalse ) |
gradientColor | Base color of the gradient ( DefaultUIColor.black.withAlphaComponent(0.6)) |
gradientHeightFactor | Height of the gradient based on slide height ( Default 0.5 ) |
titleFont | Sets thefont of the slide title |
descriptionFont | Sets thefont of the slide description |
captionFont | Sets thefont of the slide caption |
titleColor | Sets thetextColor of the slide title |
descriptionColor | Sets thetextColor of the slide description |
captionColor | Sets thetextColor of the slide slide caption |
titleGlideFactor | Configures the speed of the transition of the title label ( Default 2 ) |
descriptionGlideFactor | Configures the speed of the transition of the description label ( Default 3 ) |
captionGlideFactor | Configures the speed of the transition of the caption label ( Default 1 ) |
pageIndicatorPosition | Configures positon of the pge indicator |
placeHolderImage | Configures slide background placeholder if a URL is specified, elsenil |
A few issue to tackle
- Pass slide data through delegates
- Support for Network images
- Multiple animations
- Customizable label positionings
- Code optimizations
Steps to contribution:
- Fork the repo
- Clone the project
- Make your changes
- Make a pull request
If you have any question please feel free to open an issue
About
An elegant animated slideshow written in swift
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Contributors2
Uh oh!
There was an error while loading.Please reload this page.

