Skip to content

Commit 2bb38c4

Browse files
committed
no message
1 parent 6a3e4ea commit 2bb38c4

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

LayoutFrameworkBenchmark/Benchmarks/NKFrameLayoutKit/NKFrameLayoutKitView.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,7 @@ class NKFrameLayoutKitView: UIView, DataBinder {
134134
addSubview(actorCommentLabel)
135135
backgroundColor = UIColor.white
136136

137-
mainFrameLayout = NKGridFrameLayout(direction: .vertical)
138-
mainFrameLayout.add(topBar)
139-
mainFrameLayout.add(posters)
140-
mainFrameLayout.add(withTargetView: posterCommentLabel)
141-
mainFrameLayout.add(withTargetView: contentImageView)
142-
mainFrameLayout.add(withTargetView: contentTitleLabel)
143-
mainFrameLayout.add(withTargetView: contentDomainLabel)
144-
mainFrameLayout.add(actions)
145-
mainFrameLayout.add(comment)
137+
mainFrameLayout = NKGridFrameLayout(direction: .vertical, andViews: [topBar, posters, posterCommentLabel, contentImageView, contentTitleLabel, contentDomainLabel, actions, comment])
146138
mainFrameLayout.edgeInsets = UIEdgeInsets(top: 5, left: 5, bottom: 5, right: 5)
147139
addSubview(mainFrameLayout)
148140
}

0 commit comments

Comments
 (0)