Created
January 31, 2022 09:30
-
-
Save micHar/03c10801bff85fff17080fd2f5133226 to your computer and use it in GitHub Desktop.
This file contains 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
protocol Shakeable { | |
func shake() | |
} | |
extension Shakeable where Self: UIView { | |
func shake() { | |
UIView.animate(... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment