Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

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
Comment

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
Comment

PREVIOUS NEXT
Code Example
Swift :: How do I check if a string contains another string in Swift 
Swift :: swift notifications mac 
Swift :: swift stirng to date 
Swift :: how to get index path cell collection view from ui longpress gesture swift 
Swift :: swift uitableview cell spacing 
Swift :: hide status bar ios 
Swift :: delete padding list swiftui 
Swift :: swift enum all cases 
Swift :: stackoverflow get firbas analytics in ios 
Swift :: swift function with return value 
Swift :: swift http request 
Swift :: pop the view controller xcode 
Swift :: iOS 10.3.1 Simulator manually 
Swift :: swift push view controller 
Swift :: how to download swift 
Swift :: swift ways to setup constraints 
Swift :: get keyboard height swift 
Swift :: and in swift7 
Swift :: swift url request 
Swift :: go to view controller programmatically swift 
Swift :: add navigation bar button swiftui 
Swift :: How to hide view in swiftui 
Swift :: ios get device id 
Swift :: socket io swift 
Swift :: Play Video in AVPlayer ViewController Sample Code Swift 
Swift :: swift int to int32 
Swift :: ios get notification payload 
Swift :: Swift Syntax of guard Statement 
Swift :: Swift nested if Statement 
Swift :: Swift Assigning and accessing a value from an optional 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =