python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
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 = ....
Suncica Miladinovic
Votes: 0
Answers: 2
UIImage(named:) with period loads wrong image (e.g. for SFSymbols)
I want an easy way to load SFSymbol images with configuration, if possible. Else just load the image normally. So I have this extension and I have all SFSymbols I need in in my assetcatalog with the s...
thisIsTheFoxe
Votes: 0
Answers: 1
How to convert SwiftUI View body to UIImage in ViewController
I am working on this convertion and tried many solutions (extensions and methods) as there are so many questions and answers related to this but nothing helped like I have tried following solutions bu...
Arslan Kaleem
Votes: 0
Answers: 1
Rotate Image 5 degrees each time user clicks button in swift
I am creating a custom image editor for a project where I am stuck at rotating images by 5 degrees forward and backward.
here is what I have tried so far
1. self.cropImageView.transform =
self.cr...
NickCoder
Votes: 0
Answers: 1