diff --git a/MVMCore/MVMCore/Models/Model/ModelRegistry.swift b/MVMCore/MVMCore/Models/Model/ModelRegistry.swift index 65e413d..dbb2afa 100644 --- a/MVMCore/MVMCore/Models/Model/ModelRegistry.swift +++ b/MVMCore/MVMCore/Models/Model/ModelRegistry.swift @@ -50,9 +50,9 @@ public struct ModelRegistry { /// A convenience wrapping function where error handling is managed within the class. /// - Parameter type: Takes an object of ModelProtocol.self which is used to register - public static func register(_ type: M.Type) { + public static func register(_ type: M.Type, allowsReplace: Bool = false) { do { - try throwable_register(type: type) + try throwable_register(type: type, allowsReplace: allowsReplace) } catch { handleError(error) }