Skip to content

Instantly share code, notes, and snippets.

@azamsharp
Created May 27, 2020 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azamsharp/7fc926ff053c36a0feb94d9699e72dd1 to your computer and use it in GitHub Desktop.
Save azamsharp/7fc926ff053c36a0feb94d9699e72dd1 to your computer and use it in GitHub Desktop.
struct NeumorphicImageButton: View {
@State private var isPressed: Bool = false
private var systemName: String
private var onTap: () -> Void
private var size: CGSize
init(systemName: String,size: CGSize = CGSize(width: 60, height: 60), onTap: @escaping () -> Void) {
self.systemName = systemName
self.size = size
self.onTap = onTap
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment