I wanted to make it like this:
into this
because im having trouble merging a UIButton
and UILabel
together
The My Current Code is this:
//UIStackView
lazy var infoHelpFooterStack : UIStackView = {
lazy var infoContact : UILabel = {
let label = UILabel()
label.translatesAutoresizingMaskIntoConstraints = false
label.font = AppFont.regular.size(14)
label.text = "Still need help? Send a message to the support team"
label.numberOfLines = 0
label.textColor = AppColors.primaryBlue
label.textAlignment = .left
return label
}()
let stack = UIStackView(arrangedSubviews: [infoContact,contactButton])
stack.translatesAutoresizingMaskIntoConstraints = false
stack.axis = .horizontal
stack.distribution = .fillProportionally
stack.spacing = 3
return stack
}()
// UIButton
lazy var contactButton: UIButton = {
let button = UIButton()
button.setTitle("Contact Support", for: .normal)
button.setTitleColor(AppColors.primaryBlue, for: .normal)
button.titleLabel?.font = AppFont.semiBold.size(17)
button.withWidth(170)
button.withHeight(190)
button.addTarget(self, action: #selector(contactButtonTapped), for: .touchUpInside)
return button
}()