Skip to content

Commit

Permalink
📦 Apply Builder<Object>() (#12)
Browse files Browse the repository at this point in the history
* Update README.md

* change package name to SwiftBuilder

* 📦 rename inline document

* 🧾 SwiftBuilder now have an associate readme

* âš’ codecov xcode scheme name update

* 🦄 update readme badge icon

* 📦 apply CreateByVoid
  • Loading branch information
ytyubox committed Aug 15, 2020
1 parent 9e9632b commit 5c95afa
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Sources/SwiftBuilder/CreateByVoid.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//
// File.swift
//
//
// Created by 游宗諭 on 2020/8/15.
//

import Foundation

public protocol CreateByVoid {
init()
}
extension Builder: CreateByVoid where Subject: CreateByVoid{
public init() {
subject = .init()
}
}

extension NSObject: CreateByVoid {}
extension String: CreateByVoid {}
extension Int: CreateByVoid {}

0 comments on commit 5c95afa

Please sign in to comment.