Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samasaur1/protocolkit

A collection of Swift protocols that I use in all my projects
https://github.com/samasaur1/protocolkit

Last synced: 19 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# ProtocolKit

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

## Copiable
### Declaration:
```swift
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).