Skip to content

wltrup/CollectionConvenience

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CollectionConvenience

Xcode Swift GitHub tag (latest SemVer) GitHub

What

CollectionConvenience is a Swift Package Manager package for iOS/tvOS (10.0 and above), watchOS (4.0 and above), and macOS (10.14 and above), under Swift 5.0 and above, adding a protocol extension to Collection to define the computed property isNotEmpty. It may seem redundant but it sometimes does make for cleaner code.

public extension Collection {
    
    var isNotEmpty: Bool
    
}

Installation

CollectionConvenience is provided only as a Swift Package Manager package, because I'm moving away from CocoaPods and Carthage, and can be easily installed directly from Xcode.

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages