To search for the lyrics of a song in Swift, you can use the Genius API to get the lyrics of a particular song. Here are the steps:
pod 'Alamofire'
to your Podfile and running pod install
.import Alamofire
.main.swift1849 chars38 lines
main.swift237 chars9 lines
This function will make a request to the Genius API to search for the lyrics of the song "Blinding Lights" by The Weeknd and print the lyrics to the console. You can modify the function to suit your needs and use it in your project to search for the lyrics of any song.
gistlibby LogSnag