vds_ios/VDS/Protocols/Initable.swift
Matt Bruce 48a84960f4 updated method
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
2022-08-23 08:04:46 -05:00

22 lines
362 B
Swift

//
// Initable.swift
// VDS
//
// Created by Matt Bruce on 7/28/22.
//
import Foundation
public protocol Initable {
init()
}
extension Withable where Self:Initable {
/// Construct a new instance, setting an arbitrary subset of properties
public init(with closure: (inout Self) -> Void) {
self.init()
closure(&self)
}
}