Simple book search code written in Swift