Latest 1.1.5
Homepage https://github.com/naivalf27/CustomViewPlus
License BSD
Platforms ios 9.0, requires ARC
Frameworks UIKit
Authors

Build Status CocoaPods Compatible Platform Platform License

CustomViewPlus is an collection of view written in Swift.

Installation

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

pod "CustomViewPlus"

Requirements

Minimum requirement is iOS 9.0. This dialog was written with Swift 3.

Example

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

Usage

Les views custom

CircularImageView

For create a circularImage :

let image = CircularImage()
image.image = UIImage(named:"nom_de_l_image")
CircleButton

For create a circleButton :

let button = CircleButton()
let img = UIImage(named:"nom_de_l_image")
button.setImage(img, for: .normal)

Les navigations custom

BubbleMenu

For create a bubbleMenu :

let b1 = CircleButton()
[...]
let b2 = CircleButton()
[...]
let b3 = CircleButton()
[...]
let b4 = CircleButton()
[...]
let b5 = CircleButton()
[...]
let vc = UIViewController()
let rootViewController = BubbleMenu(rootViewController: vc, buttons: [b1,b2,b3,b4,b5])
TabbedSheet

For create a TabbedSheet :

let vc1 = UIViewController()
let vc2 = UIViewController()
let vc3 = UIViewController()
let vc4 = UIViewController()
let vc5 = UIViewController()

let tab: [TabActionSheet] = [
    TabActionSheet(name: "first", image: UIImage(named:"nom_de_l_image"), viewController: vc1, isTemplateIcon: true),
    TabActionSheet(name: "second", image: UIImage(named:"nom_de_l_image"), viewController: vc2, isTemplateIcon: true),
    TabActionSheet(name: "third", image: UIImage(named:"nom_de_l_image"), viewController: vc3, isTemplateIcon: true),
    TabActionSheet(name: "fourth", image: UIImage(named:"nom_de_l_image"), viewController: vc4, isTemplateIcon: true),
    TabActionSheet(name: "fifth", image: UIImage(named:"nom_de_l_image"), viewController: vc5, isTemplateIcon: true),
]
let rootViewController = TabbedSheet(tab: tab)

Les extensions

UIView.addInfo

For use addInfo for any UIView :

let view = UIView()

view.addInfo(text: "Ceci est un text")
// or
view.addInfo(text: "Ceci est un text", color: UIColor.white)
// or
view.addInfo(text: "Ceci est un text", textColor: UIColor.black)
// or
view.addInfo(text: "Ceci est un text", color: UIColor.white, textColor: UIColor.black)
UIAlertAction.addImage

For use addImage for any UIAlertAction :

let action = UIAlertAction(title: "nom_de_l_action", style: .default, handler: nil).addImage(image: UIImage(named:"nom_de_l_image"))
UIImage.withSize

For use withSize for any UIImage :

let image = UIImage(named:"nom_de_l_image").withSize(size: CGSize(width: 30, height: 30))

License

CustomViewPlus is available under the BSD 3-Clause License. See the LICENSE file for more info.

Latest podspec

{
    "name": "CustomViewPlus",
    "platforms": {
        "ios": "9.0"
    },
    "summary": "Custom View for ios in swift.",
    "requires_arc": true,
    "version": "1.1.5",
    "license": {
        "type": "BSD",
        "file": "LICENSE"
    },
    "authors": {
        "Flavian Mary": "[email protected]"
    },
    "homepage": "https://github.com/naivalf27/CustomViewPlus",
    "source": {
        "git": "https://github.com/naivalf27/CustomViewPlus.git",
        "tag": "v1.1.5"
    },
    "frameworks": "UIKit",
    "source_files": "CustomViewPlus/**/*.{swift}",
    "resources": "CustomViewPlus/*.{png,jpeg,jpg,storyboard,xib}",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This