You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MacBook Pro (13-inch, Late 2011)
Processor 2.4 GHz Intel Core i5
Memory 8 GB 1333 MHz DDR3
Graphics Intel HD Graphics 3000 512 MB
iPhone Xr Specs:
Color: Black
Storage: 128GB
iOS Version: 12.1.2
Any Modifications (Jailbreaking, etc): No
Additional Detail from JIRA
Votes
0
Component/s
Compiler, Foundation, Standard Library
Labels
Bug
Assignee
None
Priority
Medium
md5: 1dd25e00ec2a8e4971f839ddb7c8e484
Issue Description:
So I'm making a password generator using pure code and Swift and I ran into a weird issue. So I want the buttons to be rounded but I can't just hardcode a value to round it like:
mainButton.layer.cornerRadius = 10
Because with UIStackViews the size of the button is different on all devices and device orientations so as a solution I tried using:
So whenever the device orientation changes it updates the button and tries rounding it but whenever the orientation changes it gets messed up and then properly rounds after being clicked. So after that I was now even more confused so I tried:
To emulate a button click so the button wouldn't distort and would seem normal to the user but that also didn't work and the exact same output happened so then I tried:
Hi, Nikan. This bug tracker is for issues with the Swift language and libraries, not with UIKit and iOS. (I know the lines are sometimes blurred here, but basically we're not the ones who can fix UIKit!)
Attachment: Download
Environment
Computer Specs:
MacBook Pro (13-inch, Late 2011)
Processor 2.4 GHz Intel Core i5
Memory 8 GB 1333 MHz DDR3
Graphics Intel HD Graphics 3000 512 MB
iPhone Xr Specs:
Color: Black
Storage: 128GB
iOS Version: 12.1.2
Any Modifications (Jailbreaking, etc): No
Additional Detail from JIRA
md5: 1dd25e00ec2a8e4971f839ddb7c8e484
Issue Description:
So I'm making a password generator using pure code and Swift and I ran into a weird issue. So I want the buttons to be rounded but I can't just hardcode a value to round it like:
mainButton.layer.cornerRadius = 10
Because with UIStackViews the size of the button is different on all devices and device orientations so as a solution I tried using:
So whenever the device orientation changes it updates the button and tries rounding it but whenever the orientation changes it gets messed up and then properly rounds after being clicked. So after that I was now even more confused so I tried:
override func viewDidLayoutSubviews() {
To emulate a button click so the button wouldn't distort and would seem normal to the user but that also didn't work and the exact same output happened so then I tried:
and the same outcome came out of it so then I also tried:
and the same result also came out of that.
The text was updated successfully, but these errors were encountered: