-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Moved CGRect internal extension to the Source folder * Moved CompletionObject and its protocol to a separate file
- Loading branch information
1 parent
204f157
commit 10e441f
Showing
4 changed files
with
37 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// CompletionObject.swift | ||
// Athlee-Onboarding | ||
// | ||
// Created by mac on 07/07/16. | ||
// Copyright © 2016 Athlee. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
internal protocol Completion { | ||
func complete() | ||
} | ||
|
||
internal final class CompletionObject: Completion { | ||
internal var completion: ((Void) -> Void)? | ||
|
||
internal static let sharedInstance = CompletionObject() | ||
|
||
private init() { } | ||
|
||
internal func complete() { | ||
completion?() | ||
completion = nil | ||
} | ||
} |
This file contains 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