This is a simple SwiftUI app that allows users to share books. Users can view a list of available books, post new books, and view detailed information about each book. The app also supports borrowing books with a specified borrowing period.
-
Home View: Display a list of available books with details like name, author, genre, and availability status.
-
Post Book View: Post new books to the library by providing information such as book name, author, genre, and borrowing period.
-
Book Details View: View detailed information about a specific book, including the book cover, name, author, genre, and borrowing details.
-
Borrowing Popup View: Allows users to borrow a book with a specified borrowing period.
-
Profile View: Placeholder for the user's profile information.
The project follows a structured organization to improve code readability and maintainability.
-
Views: Contains separate Swift files for each view in the app.
HomeView.swift
PostBookView.swift
BookDetailsView.swift
BorrowingPopupView.swift
ProfileView.swift
-
Model: Contains the
Book
struct definition. -
Helpers: Placeholder for any helper functions or extensions (if needed).
- Clone the repository to your local machine.
- Open the project in Xcode.
- Run the app on a simulator or a physical device.
Feel free to explore and customize the app as needed for your own use case!
- Xcode
- SwiftUI
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.