Latest 1.0.1
Homepage https://github.com/ustwo/array-remove-swift
License MIT
Platforms ios 8.3, requires ARC
Authors

License
Build Status
codecov.io

Array+Remove

An extension to Swift’s Array type to add remove functionality

Dependencies

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate ArrayRemoveSwift into your Xcode project using CocoaPods, specify it in your Podfile:

platform :ios, '8.3'

use_frameworks!

pod 'ArrayRemoveSwift', '~> 1.0.0'

Then, run the following command:

$ pod install

Manually

  • Add the Array+Remove.swift file to your Xcode project.

Usage

See ViewController.swift for sample usage

removeObject

Use the removeObject function to remove the matching object from the array

let apple = "apple"

var fruits: [String] = []
fruits.append(apple)
fruits.removeObject(apple)

Contributing

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. See the Code of Conduct file.

Maintainers

Contact

[email protected]

License

Array+Remove is released under the MIT License. See License.

Latest podspec

{
    "name": "ArrayRemoveSwift",
    "version": "1.0.1",
    "license": "MIT",
    "summary": "An extension to Swift's Array type to add remove functionality.",
    "homepage": "https://github.com/ustwo/array-remove-swift",
    "authors": {
        "Shagun Madhikarmi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ustwo/array-remove-swift.git",
        "tag": "v1.0.1"
    },
    "platforms": {
        "ios": "8.3"
    },
    "source_files": "Sources/*.swift",
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This