add shadow to UIButton swift
globeButton.setImage(UIImage(named: "Globe"), forState: .Normal)
globeButton.backgroundColor = UIColor(red: 171/255, green: 178/255, blue: 186/255, alpha: 1.0)
// Shadow and Radius
globeButton.layer.shadowColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.25).CGColor
globeButton.layer.shadowOffset = CGSize(width: 0.0, height: 2.0)
globeButton.layer.shadowOpacity = 1.0
globeButton.layer.shadowRadius = 0.0
globeButton.layer.masksToBounds = false
globeButton.layer.cornerRadius = 4.0
Also in Swift:
- add top corner radius swift
- pop the view controller xcode
- index string swift
- go to view controller programmatically swift
- array swift
- swift get app version and build
- swift has Top Notch
- square root swift
- add shadow to collection view cell swift
- swift empty an array
- swift uknow attrubute main
- meu eclipse não gera a implementação do mapstruct
- coreData line of code
- add shadow to UIButton swift
- How to initialize data in Preview provider in SwiftUI
- swift animate add subview
- how to know when text changed textfield swiftui
- get address from latitude and longitude in swift
- xcode combine calayer into an image
- how to unwrap arrays with optional value in swift
- swift function in a variable
- markdown
- IOS create UIAlertViewController programmatically
- how to get appdelegate object in swift