Skip to content

Commit 5c95afa

Browse files
authored
📦 Apply Builder<Object>() (#12)
* 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
1 parent 9e9632b commit 5c95afa

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//
2+
// File.swift
3+
//
4+
//
5+
// Created by 游宗諭 on 2020/8/15.
6+
//
7+
8+
import Foundation
9+
10+
public protocol CreateByVoid {
11+
init()
12+
}
13+
extension Builder: CreateByVoid where Subject: CreateByVoid{
14+
public init() {
15+
subject = .init()
16+
}
17+
}
18+
19+
extension NSObject: CreateByVoid {}
20+
extension String: CreateByVoid {}
21+
extension Int: CreateByVoid {}

0 commit comments

Comments
 (0)