Structures

The following structures are available globally.

  • Pretty logger to the debug console

    See more

    Declaration

    Swift

    public struct EyrLogger
  • Deep link parameter

    See more

    Declaration

    Swift

    public struct DeepLinkParameters
  • Components of deep link

    See more

    Declaration

    Swift

    public struct DeepLinkComponents
  • Decompose deep link into scheme name, link name and parameters array

    Usage: let url = URL(string: myapp://host/path?param1=123¶m2=abc)! if let deepLinkComponents = CNLDeepLink.parseURL(url) { print(deepLinkComponents.scheme) print(deepLinkComponents.host) print(deepLinkComponents.path) if let param: Int = deepLinkComponents.parameters[param1] { print(param) } if let param: String = deepLinkComponents.parameters[param2] { print(param) } }

    See more

    Declaration

    Swift

    public struct DeepLink