ImageRenderer is another new API for SwiftUI that comes with iOS 16. It allows you to easily convert any SwiftUI views into an image. The implementation is very simple. You instantiate an instance of…
Each dot represents a song. The colour represents its year. The genre of the song is represented on the Y axis and the Billboard ranking on the X axis. By comparing the position of the dots against each other, you can find which genre topped the charts between both the years.
Rap was a top charting genre in 2008 but has been taken over by pop in 2018. Country and rock music are losing their spots in the top 100 songs on the Billboard charts.
The chart below represents the number of singles, collaborations, and group songs that hit the Billboard Top 100 chart in 2008 and 2018. There were no artist-collaborated songs in the 2008 Billboard charts. However, they hit the charts in 2018. As social media plays an important role on how we discover new things in the recent times, collaborations have helped reach a wider audience.
Programming oriented to protocols in Swift is a programming approach that focuses on using protocols to define the interfaces for a class or structure, rather than using inheritance. In Swift, a…