Sat Apr 20 2024 22:31:44 GMT+0000 (Coordinated Universal Time)
Saved by @davidmchale #width #min()
.element { width: min(90%, 1200px); /* Set a minimum width of 90% or 1200px, whichever is larger */ }
#width #min()
#ios #swift #label #layout #width #labelwidth
func setBalanceLabel(_ balance: String) { let height = balanceLabel.layer.frame.height balanceLabel.text = " " + balance + " " balanceLabel.sizeToFit() balanceLabel.layer.frame.size.height = height balanceLabel.layer.cornerRadius = balanceLabel.layer.frame.height/2 }
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments