Created
September 13, 2021 23:08
-
-
Save rudrankriyam/2683ff8a55666db453d3eca98426fa47 to your computer and use it in GitHub Desktop.
HomeViewModel addToShazamLibrary
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
public func addToShazamLibrary() { | |
SHMediaLibrary.default.add(mediaItems) { error in | |
if let error = error { | |
print(error) | |
} else { | |
let generator = UINotificationFeedbackGenerator() | |
generator.notificationOccurred(.success) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment