- TLButton
- TLCollectionView
- TLImageView
- TLLabel
- TLTopCornerView
- TLView
let sampleView = TLView(backgroundColor: .red)
view.addSubview(sampleView)
sampleView.centerInSuperView(size: .init(width: 150, height: 150))
let sampleView = TLView(backgroundColor: .red)
view.addSubview(sampleView)
sampleView.addConstraints(leadingAnchorTuple: (view.leadingAnchor, 50), topAnchorTuple: (view.topAnchor, 50))
sampleView.addHeightConstraint(equalToConstant: 150)
sampleView.addWidthConstraint(equalToConstant: 150)
let sampleView = TLView(backgroundColor: .red)
let sampleView2 = TLView(backgroundColor: .blue)
view.addSubview(sampleView)
view.addSubview(sampleView2)
sampleView.centerInSuperView(size: .init(width: 100, height: 100))
sampleView2.addConstraints(trailingAnchorTuple: (sampleView.leadingAnchor, 0) ,bottomAnchorTuple: (sampleView.topAnchor, 0))
sampleView2.addWidthConstraint(equalTo: sampleView.widthAnchor)
sampleView2.addHeightConstraint(equalTo: sampleView.heightAnchor)
- Swift Package Manager
- iOS 13 +
- Swift 5 +