Latest 1.9.3
Homepage https://github.com/OpenCraft/OCExtensions
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

Swift 3.0 compatible
Build Status
Version
License
Platform

Requirements

It requires Xcode 8.0+ and Swift 3.0.

Your project deployment target must be iOS 8.0+

Installation

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

pod 'OCExtensions'

Documentation

Color

// Get an image representation from a color.
// Default size: 1x1px
func image(withSize size: CGSize? = nil) -> UIImage?

// Example
let redImage = UIColor.redColor().image()

Image

// Instantiate an image with a color.
// Default size: 1x1px
convenience init?(color: UIColor, size: CGSize? = nil)

// Example
let redImage = UIImage(color: UIColor.redColor())

TextField

// Returns a non-optional String value.
var textValue: String

// Check if text input is empty.
var isEmpty: Bool

Layer

// Intantiate a Gradient Layer passing only the frame, orientation and color array
convenience init(frame: CGRect, orientation: GradientOrientation, colors: [CGColor])

View

// TODO: documentation

Badge

// TODO: documentation

ViewController

// TODO: documentation

Author

Henrique Morbin, [email protected]

License

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

Latest podspec

{
    "name": "OCExtensions",
    "version": "1.9.3",
    "summary": "A bunch of Extensions.",
    "description": "A bunch of Extension: UIView, UIViewController.",
    "homepage": "https://github.com/OpenCraft/OCExtensions",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Henrique Morbin": "[email protected]"
    },
    "source": {
        "git": "https://github.com/OpenCraft/OCExtensions.git",
        "tag": "1.9.3"
    },
    "social_media_url": "https://twitter.com/Morbix",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "OCExtensions/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This