FatalErrorUtil

public struct FatalErrorUtil

Utility functions that can replace and restore the fatalError global function.

  • Replace the fatalError global function with something else.

    Declaration

    Swift

    public static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never)
  • Restore the fatalError global function back to the original Swift implementation

    Declaration

    Swift

    public static func restoreFatalError()