File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public class Layout {
40
40
private func add( views: [ String : MarkupElement ] , to root: UIView ) {
41
41
for (id, view) in views {
42
42
guard let v = self . viewOfType ( view. type, id) else { continue }
43
- self . didCreate ( v, id)
43
+ self . didCreateView ( v, id)
44
44
v. translatesAutoresizingMaskIntoConstraints = false
45
45
v. tag = id. hash
46
46
self . views [ id] = v
@@ -75,7 +75,7 @@ public class Layout {
75
75
76
76
public var formatOptions : FormatOptionsForConstraintID = { ( id) -> NSLayoutConstraint . FormatOptions in [ ] }
77
77
public var viewOfType : ViewOfTypeForID = { ( type, id) -> UIView ? in return Layout . view ( of: type) }
78
- public var didCreate : DidCreateViewForID = { ( view, id) -> Void in return }
78
+ public var didCreateView : DidCreateViewForID = { ( view, id) -> Void in return }
79
79
80
80
}
81
81
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ try? Layout(name: "layout").configure {
66
66
// provide view yourself (if the class does not have default initializer) or fall back to the default implementation
67
67
$0 .viewOfType = { (type, id) -> UIView? in return Layout.view (of : type) }
68
68
// configure a newly created view
69
- $0 .didCreate = { (view, id) -> Void in return }
69
+ $0 .didCreateView = { (view, id) -> Void in return }
70
70
}
71
71
.inflate (in : view)
72
72
```
You can’t perform that action at this time.
0 commit comments