String

struct String
  • Return a Date object if the current String is in the right format.

    Declaration

    Swift

    public var iso8601StringDate: Date?
  • The URL for the underlying media file with additional options for server side manipulations such as format changes, resizing, cropping, and focusing on different areas including on faces, among others.

    Throws

    Will throw SDKError if the SDK is unable to generate a valid URL with the desired ImageOptions.

    Declaration

    Swift

    public func url(with imageOptions: [ImageOption] = []) throws -> URL

    Parameters

    imageOptions

    An array of ImageOption that will be used for server side manipulations.

  • Will make a URL from the current String instance if possible.

    Declaration

    Swift

    public func url() throws -> URL