Skip to content

Instantly share code, notes, and snippets.

@Rashidium
Last active March 31, 2021 18:19
Show Gist options
  • Save Rashidium/dd543d10061800325e30fe4ffa3c32c5 to your computer and use it in GitHub Desktop.
Save Rashidium/dd543d10061800325e30fe4ffa3c32c5 to your computer and use it in GitHub Desktop.
AppLinkable with payload
/// AppLinkable's for deeplink navigation.
public protocol AppLinkable {
/// Returns AppLinkable if url is satisfied
/// - Parameter url: URL of deeplink
func getLinkable(_ url: URL) -> Self?
/// Returns AppLinkable if url is satisfied.
/// - Parameter payload: Push notification payload of the deeplink.
func getLinkable(payload: [AnyHashable: Any]) -> Self?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment