Swift Package Index


A collection of Swift protocols that I use in all my projects


  • The latest stable release is v1.0.2. Released 2 years ago.
  • The last commit to master was 2 years ago.

Swift Version Compatibility

  • v1.0.2 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • v1.0.2 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

ProtocolKit

A collection of Swift protocols that define common basic functionality. The current list includes:

Copiable

Declaration:

public protocol Copiable {
    associatedtype ReturnType = Self
    func copy() -> ReturnType
}

Requirements:

Implement the copy() function. This function should return the type of the implementing object (e.g. the copy() method of SomeClass returns a SomeClass instance).