Created
May 27, 2020 02:26
-
-
Save azamsharp/7fc926ff053c36a0feb94d9699e72dd1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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