Latest 0.1.0
Homepage https://github.com/rrainn/utilswift
License MIT
Platforms ios 8.0
Authors

CI Status
codecov
Version
License
Platform

Example

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

Requirements

  • iOS 8.0+

Installation

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

pod 'utilswift'

Author

rrainn, Inc., [email protected]

License

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

Documentation

Array

randomElement

This method returns a randomElement from an array. If array is empty this method will return nil.

let array: [Int] = [1, 2, 3, 4, 5]
print(array.randomElement()!)

Latest podspec

{
    "name": "utilswift",
    "version": "0.1.0",
    "summary": "Utilities to make Swift Easy",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/rrainn/utilswift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "rrainn, Inc.": "[email protected]"
    },
    "source": {
        "git": "https://github.com/rrainn/utilswift.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "utilswift/Classes/**/*",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This