ProtocolKit

master

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

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).

Description

  • Swift Tools 4.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Oct 18 2024 17:48:49 GMT-0900 (Hawaii-Aleutian Daylight Time)