Skip to content

Instantly share code, notes, and snippets.

@Slowhand0309
Created August 1, 2019 08:48
Show Gist options
  • Save Slowhand0309/9424a8ddac1d4269d720e65f931dcf38 to your computer and use it in GitHub Desktop.
Save Slowhand0309/9424a8ddac1d4269d720e65f931dcf38 to your computer and use it in GitHub Desktop.
[Floating Action Button for iOS] #iOS
@IBOutlet weak var floatingActionButton: UIView! {
didSet {
floatingActionButton.layer.cornerRadius = floatingActionButton.width / 2.0
floatingActionButton.layer.shadowOpacity = 0.8
floatingActionButton.layer.shadowOffset = CGSize(width: 2.0, height: 2.0)
floatingActionButton.layer.shadowColor = UIColor.darkGray.cgColor
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment