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: Tue Nov 08 2022 09:07:20 GMT-0500 (GMT-05:00)