Releases: MightyCombine/UIBuilder
Releases · MightyCombine/UIBuilder
0.7.0
Full Changelog: 0.6.9...0.7.0
Deprecate and New
lazy var tableView = TableViewBuilder()
.registerView(HeaderView.self, "HeaderView")
.build()
lazy var collectionView = CollectionViewBuilder()
.registerView(
HeaderView.self,
forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader,
withReuseIdentifier: HeaderView.identifier
)
.build()
0.6.9
Full Changelog: 0.6.8...0.6.9
New Feat
lazy var collectionView = CollectionBuilder()
.register(
HeaderView.self,
forSupplementaryViewOfKind: UICollectionView.elementKindSectionHeader,
withReuseIdentifier: HeaderView.identifier
)
.build()
0.6.8
Full Changelog: 0.6.7...0.6.8
New Feat - TableBuilder func setSectionHeaderTopPadding
lazy var tableView = TableBuilder()
.setSectionHeaderTopPadding(16)
.buid()
0.6.7
Full Changelog: 0.6.6...0.6.7
New Feat
lazy var button = ButtonBuilder()
.setImageEdgeInsets(edgeInsets)
.build()
0.6.6
0.6.5
New Feat
lazy var tableView = TableViewBuilder()
.registerHeaderFooter(HeaderView.self, "HeaderViewe")
.build()
Full Changelog: 0.6.3...0.6.5
0.6.4
0.6.3
Add
- setPointTextColor
- setLineHeight
✅Use
private lazy var testLabel = LabelBuilder()
.setText("텍스트 강조 기능 테스트\n다음줄\n2번째 줄")
.setTextColor(.blue)
.setPointTextColor("강조", color: .red) // 🔧New
.setLineHeight(30) // 🔧New
.setFont(.systemFont(ofSize: 16))
.addToSuperView(self.view)
.setNumberOfLines(3)
.build()
0.6.2
Fix
- Change addArrangedSubview to addArrangedSubviews
- Use Variadic Parameter
✅ Old
private lazy var inputStackView =
StackViewBuilder(
view: UIStackView(arrangedSubviews: [view1,view2,view3])
)
.setSpacing(4.0)
.setCustomSpacing(10.0, after: view2)
.setAlignment(.fill)
.setIsUserInteractionEnabled(true)
.addToSuperView(self.view)
.setBackgroundColor(.gray)
.build()
✅ New
private lazy var inputStackView = StackViewBuilder()
.setSpacing(4.0)
.addArrangedSubviews(view1, view2, view3)
.setCustomSpacing(10.0, after: view2)
.setAlignment(.fill)
.setIsUserInteractionEnabled(true)
.addToSuperView(self.view)
.setBackgroundColor(.gray)
.build()
0.6.1
New Feat
- add ButtonConfigurationBuilder
- add setBackgroundCornerRadius in ButtonBuilder
- add setCustomSpacing in StackViewBuilder
lazy var button = ButtonBuilder()
.setBackgroundCornerRadius(20.0)
.build()
private lazy var inputStackView =
StackViewBuilder(
view: UIStackView(arrangedSubviews: [view1,view2,view3])
)
.setSpacing(4.0)
.setCustomSpacing(10.0, after: view2)
.build()