skip to Main Content

How can I add two images (one at the left and one on the right side) in a button in Xcode programaticly? I need also a title of a button

func setupButtonUI() { if let detailsImage = UIImage(named: "detalji_icon") { setImage(detailsImage, for: .normal) contentHorizontalAlignment = .left contentVerticalAlignment = .center } if let arrowImage = UIImage(named: "posalji_zahtev_black_icon") { setImage(arrowImage, for: .normal) contentHorizontalAlignment = .right contentVerticalAlignment = .center } }/this is one…

VIEW QUESTION
Back To Top
Search