Latest 0.1.4
Homepage https://github.com/burakustn/BULoopView
License MIT
Platforms ios 8.0
Dependencies Kingfisher
Authors

CI Status
Version
License
Platform

sample

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

Setup the BUSimplePopupManager

import UIKit
import BULoopView

 var arrayLoop:   [LoopItem]    = []
    override func viewDidLoad() {
        super.viewDidLoad()

        /*
         Set the properties
         **/
        LoopView.LoopItemWidth = 180
        LoopView.LoopItemMargin = 30
        LoopView.backgroundColor = UIColor.blue

        /*
         Create an LoopItem array and fill it
         **/
        for i in 0..<10{
            let item = LoopItem.init(_name: "Test(i)", _photoPath: "https://burakustn.com/assets/images/logo.png")
            self.arrayLoop.append(item!)
        }

        /*
         Load the BULoopView
        **/
        self.LoopView.loadLoopView(LoopArray: self.arrayLoop)

    }

You can customize everything below

 /**
     *  Use to set the Loop Items Space
     */
    public var LoopSpace: CGFloat = 10.0

    /**
     *  Use to set the Loop Items Width
     */
    public var LoopItemWidth:  CGFloat = 150.0

    /**
     *  Use to set the Loop Items Margin
     */
    public var LoopItemMargin:CGFloat = 10.0

    /**
     *  Use to set the Loop Items Image Width
     */
    public var LoopItemImageWidth:CGFloat = 50.0

    /**
     *  Use to set the Loop Items Seperator Color
     */
    public var seperatorColor:UIColor = UIColor( red:0.961,  green:0.961,    blue:0.961, alpha:1)

    /**
     *  Use to set the Loop Seperator Alpha
     */
    public var seperatorAlpha:CGFloat = 0.7

    /**
     *  Use to set the Loop Items Text Color
     */
    public var textColor:UIColor = UIColor( red:0.961,  green:0.961,    blue:0.961, alpha:1)

    /**
     *  Use to set the Loop Items Text Font
     */
    public var labelFont:UIFont? = nil

You can handle the click event using BULoopViewDelegate’s didSelectIndexAt method.

    extension SampleViewController : BULoopViewDelegate{
        func didSelectIndexAt(Index: Int) {
            print("Selected Index : (Index)")
        }
    }

Installation

BUSimplePopup is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "BULoopView"

Author

Burak Üstün
[email protected]
Twitter.com/burakustn
Github.com/burakustn

License

BULoopView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "BULoopView",
    "version": "0.1.4",
    "summary": "Loopable UIScrollView for Swift 3.1",
    "description": "TODO: Loopable UIScrollView for Swift 3.1",
    "homepage": "https://github.com/burakustn/BULoopView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/burakustn/BULoopView.git",
        "tag": "0.1.4"
    },
    "social_media_url": "https://twitter.com/burakustn",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "BULoopView/Classes/**/*",
    "dependencies": {
        "Kingfisher": []
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This