Extensions

The following extensions are available globally.

  • Default-implement EventExtras for a map of ExtraKeys to Strings.

    See more

    Declaration

    Swift

    extension Dictionary: EventExtras where Key: ExtraKeys, Value == String
  • Turn a string into an error, so that it can be thrown as an exception.

    This should only be used in tests.

    See more

    Declaration

    Swift

    extension String: Swift.Error