Latest0.1.1
Homepagehttps://github.com/migue1s/SafeArrays
LicenseMIT
Platformsios 8.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Miguel Saiz/SafeArrays.svg?style=flat)](https://travis-ci.org/Miguel Saiz/SafeArrays)
Version
License
Platform

Usage

On normal swift arrays, subscript them with the word "safe:", if bounds checking fails, then it will return nil.

Example

let testArray = [1,2,3]

// Will return nil
testArray[safe: 4]

// Will crash the app with an "array out of bounds exception".
testArray[4]

Installation

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

pod "SafeArrays"

Author

Miguel Saiz, [email protected]

License

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

Latest podspec

{
    "name": "SafeArrays",
    "version": "0.1.1",
    "summary": "Make swift arrays even safer.",
    "description": "Make swift collections even safer, by eliminating some mechanical bounds checking.",
    "homepage": "https://github.com/migue1s/SafeArrays",
    "license": "MIT",
    "authors": {
        "Miguel Saiz": "[email protected]"
    },
    "source": {
        "git": "https://github.com/migue1s/SafeArrays.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "SafeArrays": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This