Lucas Schiavini
04/26/2022, 12:41 AMribesg
04/26/2022, 10:41 AMLucas Schiavini
04/26/2022, 11:15 AMribesg
04/26/2022, 11:17 AMLucas Schiavini
04/26/2022, 11:19 AMribesg
04/26/2022, 11:20 AMclass EventListUIView(frame: CValue<CGRect>, header: UIView) : UIView(frame), UITextFieldDelegateProtocol {
val collectionViewWrapper = EventListUICollectionViewWrapper()
val loader = uiActivityIndicatorView(UIColor.wizParma) {
large()
}
init {
backgroundColor = UIColor.backgroundGray
addSubview(collectionViewWrapper.view)
addSubview(loader)
addSubview(header)
setupConstraints {
with(header) {
topToTopOf(parent, useSafeArea = true)
fitHorizontallyTo(parent)
}
with(collectionViewWrapper.view) {
topToTopOf(parent, useSafeArea = true)
bottomToBottomOf(parent)
fitHorizontallyTo(parent)
}
with(loader) {
centerIn(parent)
}
}
}
}