UIButton Borders Function Only Gives Back White Borders
问题 I'm trying to create a Button Borders Function in Swift to help style my UI. However whatever RGB values I pass in/initialize the function only creates white borders. Here is my function: func buttonsWithBorders(button: UIButton, borderWidth: CGFloat, redcolour: CGFloat , greencolour: CGFloat, bluecolour: CGFloat, alpha: CGFloat?) { let redcolour : CGFloat = 7.0 var greencolour : CGFloat = 3.0 var bluecolour : CGFloat = 2.0 var alpha: CGFloat = 1.0 var widthOfBorder: CGFloat = borderWidth var