-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature request: Callback when presented and dismissed #50.
Build bump.
- Loading branch information
Showing
18 changed files
with
329 additions
and
230 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
19 changes: 10 additions & 9 deletions
19
...yAttributes/EKAttributes+Completion.swift → ...butes/EKAttributes+LifecycleActions.swift
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 |
---|---|---|
@@ -1,36 +1,37 @@ | ||
// | ||
// EKAttributes+Completion.swift | ||
// EKAttributes+LifecycleActions.swift | ||
// SwiftEntryKit | ||
// | ||
// Created by Daniel Huri on 6/16/18. | ||
// Copyright © 2018 CocoaPods. All rights reserved. | ||
// Copyright (c) 2018 [email protected]. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
extension EKAttributes { | ||
|
||
public struct LifecycleActions { | ||
/** Contains optionally injected events that take place during the entry lifecycle */ | ||
public struct LifecycleEvents { | ||
|
||
public typealias Action = () -> Void | ||
public typealias Event = () -> Void | ||
|
||
/** Executed before the entry appears - before the animation starts. | ||
Might not get called in case another entry with a higher display priority is displayed. | ||
*/ | ||
public var willAppear: Action? | ||
public var willAppear: Event? | ||
|
||
/** Executed after the animation ends. | ||
Might not get called in case another entry with a higher display priority is displayed. | ||
*/ | ||
public var didAppear: Action? | ||
public var didAppear: Event? | ||
|
||
/** Executed before the entry disappears (Before the animation starts) */ | ||
public var willDisappear: Action? | ||
public var willDisappear: Event? | ||
|
||
/** Executed after the entry disappears (After the animation ends) */ | ||
public var didDisappear: Action? | ||
public var didDisappear: Event? | ||
|
||
public init(willAppear: Action? = nil, didAppear: Action? = nil, willDisappear: Action? = nil, didDisappear: Action? = nil) { | ||
public init(willAppear: Event? = nil, didAppear: Event? = nil, willDisappear: Event? = nil, didDisappear: Event? = nil) { | ||
self.willAppear = willAppear | ||
self.didAppear = didAppear | ||
self.willDisappear = willDisappear | ||
|
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
Oops, something went wrong.