This app shows reading book by specific categories. Shows developers how to work with SwiftUI. Here we first wrote models using structures. More categories and models can be written according to the request of the person. Then we got these models in a List in ContentView. We imported our models into ContentView with a ForEach loop. Then we used a Section property. In this way, we were able to show our model titles. By using another ForEach in the Section, we were able to show the book names in the List. Then we used NavigationLink so that the user could click on the names and access information about the book. In order for this feature to work fully, we wrapped the List structure with NavigationView. Then we created a View where the user can see the details when they click on the books. It takes a BookDetail model into the DetailView. In this way, he can access the clicked book and show its features. Here we used an Image and two Text. We placed the image structure according to the screen-to-body ratio so that it works properly on devices. Finally, we sent the book that was touched from the ContentView. We gave the name of our application as NavigationTitle and ended the construction phase.
muharremkoroglu / booki Goto Github PK
View Code? Open in Web Editor NEWUsing SwiftUI with Swift