Skip to main content
6 votes
0 answers
234 views

I need to show occasional long texts in a UIButton in the section header of my UITableView. The following simple example code shows the issue: import UIKit import SnapKit class ViewController: ...
sudoExclamationExclamation's user avatar
-1 votes
0 answers
45 views

https://youtube.com/shorts/YXl0ijziTyM?si=RMP2ZQuyFlVsfg8e After the iOS 26 update, unwanted animations appear on UIButton. I'm using the attributedTitle property of UIButton.Configuration to change ...
 Macmillan's user avatar
0 votes
2 answers
211 views

I have an iOS 26 app in which I have defined the app wide tintColor to be green: UIView.appearance().tintColor = UIColor.systemGreen I have a done button in my navigation bar whose style is ....
sudoExclamationExclamation's user avatar
1 vote
2 answers
95 views

Here's a small demo app that configures a button in the interface: class ViewController: UIViewController { @IBOutlet var button: UIButton! override func viewDidLoad() { super....
matt's user avatar
  • 540k
0 votes
2 answers
129 views

I’m trying to create a button in SwiftUI that has a rounded border and includes an additional label (e.g., “Save 50%”) positioned at the top-left. However, I need the border to “break” where this ...
4ert's user avatar
  • 3
-1 votes
1 answer
80 views

How can we change the font size AND round corners of a button on a storyboard? Button of style "gray" has a default value of rounded corners. That is good. But style "gray" DOES ...
stackunderflow's user avatar
-1 votes
1 answer
141 views

I have a volume toggle button. When I press the button, then pause or play is called with some fading. The problem is that if I quickly press the button twice, for example, pause and then playback, I ...
user1342352532's user avatar
0 votes
1 answer
72 views

I have a button and an action. I also have an image for the button in its normal state and when it is pressed. These are .svg images. My button is to turn the sound mute/unmute. So I have two images ...
Alex Smith's user avatar
-1 votes
1 answer
71 views

I have a UIButton in my UIViewController in my storyboard, and I'm trying to change it's background image, using transition animation: extension UIButton { func setBackgroundImageWithFade(_ image: ...
Aviram Netanel's user avatar
0 votes
3 answers
94 views

I am trying to create the button similar to the button shown in image. Button has 2 colours inside it (like background color). 1 is transparent and other color is light-orange. The light-orange color ...
Husnain Khalil's user avatar
0 votes
0 answers
97 views

I created this button here to be an archive button for an inbox. class ArchiveButton: UIButton { // MARK: - Initializer override init(frame: CGRect) { super.init(frame: frame) ...
daredevil1234's user avatar
-1 votes
1 answer
152 views

I have a UIButton with both a title and an image. The button's size changes dynamically, but the title text and image inside the button do not resize proportionally to match the button's size. I want ...
MrSakhr's user avatar
0 votes
2 answers
181 views

This is my button: import UIKit class PassButton: UIButton { var videoVC: VideoGameVC? required init(isEnabled: Bool = false) { super.init(frame: .zero) self....
The Outstanding Question Asker's user avatar
0 votes
1 answer
79 views

I have created two sets of UIButtons, with regular constructors (top StackVew on the attached image) and with UIButton.Configuration (the bottom StackView). Both have icons created from a .png file. ...
Petro Shm's user avatar
  • 351
1 vote
1 answer
61 views

The UIStackView doesn't have the correct .fill distribution if subviews are UIButtons created with UIButton.Configuration. In the example below I created two UIStackView with subviews of UIButton type....
Petro Shm's user avatar
  • 351

15 30 50 per page
1
2 3 4 5
752