Last active
December 14, 2019 04:15
-
-
Save 0xLeif/29cfc54639e0f50c617e72df6ad75a5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSObjectProtocol+Swift.swift | |
// | |
// | |
// Created by Zach Eriksen on 10/30/19. | |
// | |
import Foundation | |
public extension NSObjectProtocol { | |
@discardableResult | |
func configure(_ closure: (Self) -> Void) -> Self { | |
closure(self) | |
return self | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment