Helpers

Some types and extensions to standard types that may be useful in applications that use the SDK.

  • Declaration

    Swift

    extension AnyCancellable
  • Declaration

    Swift

    extension Array
  • A value that represents a mutable operation on an array.

    An array is frequently used to represent the data displayed by a UITableViewController or a UICollectionViewController. When the array is updated, the view displayed must be updated accordingly, This type is designed to simplify this update, and even better to animate this update.

    This type does not store the array itself.

    Instances of this type are returned by the following methods:

    See more

    Declaration

    Swift

    public struct ArrayOperation : Equatable
  • Declaration

    Swift

    extension Dictionary where Key == WebcomKey
  • Declaration

    Swift

    extension Error
  • An instance that facilitate the writing of a UNNotificationServiceExtension extension.

    This instance :

    • stores the notification request and the content handler from the didReceive(_:withContentHandler:) method,
    • manages a counter of running asynchronous tasks started by that method.

    It is designed to deliver the possibly modified notification to the user when:

    • there is no more running asynchronous tasks,
    • or the system is about to terminate the extension.

    In order to do that:

    This class is thread-safe.

    See more

    Declaration

    Swift

    public final class NotificationServiceManager : CustomDebugStringConvertible
  • Declaration

    Swift

    extension NSRegularExpression
  • Declaration

    Swift

    extension Result
    extension Result: @retroactive CustomStringConvertible where Success == Void, Failure == WebcomError
  • A value that is its own identifier.

    Declaration

    Swift

    public protocol SelfIdentifiable : Hashable, Identifiable where Self == Self.ID
  • Declaration

    Swift

    extension String