SwiftIdentifiedModel

@available(OSX 10.13, iOS 11.0, tvOS 11.0, watchOS 4.0, *)
@objc(FritzSwiftIdentifiedModel)
public protocol SwiftIdentifiedModel : BaseIdentifiedModel, ReadWriteModelProvider

Conform your Xcode-generated Swift class to this protocol to expose Fritz functionality

  • fritz() Extension method

    Injects a Fritz managed model into this instance allowing the SDK to instrument model predications.

    Declaration

    Swift

    public func fritz() -> Self

    Return Value

    The same instance that this method was called.

  • Manually check for an OTA model update

    Declaration

    Swift

    public func updateIfNeeded(completionHandler: @escaping (Bool, Error?) -> Void)
  • Manually check for an OTA model update

    Declaration

    Swift

    public static func updateIfNeeded(completionHandler: @escaping (Bool, Error?) -> Void)