Thumbnail image

Rebuiding Train Booking Feature by SwiftUI in 12Bay Application - Design

Table of Contents

Abstract

Today, we are continuing our journey of learning SwiftUI by rebuilding the train booking feature in the 12Bay application. This function is designed to help users find trains that are available for their desired departure and arrival stations. Once users find their preferred train, the app will show them which seats are available for that specific journey. Users can then choose their preferred seat type, like window or aisle seats, and select the number of tickets they want to book. They can review all the booking details, make any necessary changes, and then proceed to the payment step. Through this post, we will gain a better understanding of how to create a seamless and user-friendly train booking experience.

  • All train booking UIKit will be rewrite in SwiftUI
  • To deepen understanding of SwiftUI via custom Seat layout
  • Using UIKit and SwiftUI together

Wireframe prototype

I have been researching ideas for designing seat layouts and I have come across various interesting concepts. Here are a few examples of the seat layouts I have selected

image

Selected Seats layout

After over an hour, I have designed a layout that I will develop. Here it is:

image

Selected Seats layout

Conclusion

Wow, after getting the design idea, I am very excited to turn it into reality. However, I have encountered several challenges, but I hope that I will overcome them, In the following articles, I will share in detail how I use SwiftUI to build the train ticket booking feature. I look forward to meeting you soon. Happy coding ^^

Posts in this Series

If you enjoy reading my articles and find them helpful, please support me. Your support will encourage me to create and share more content with you ^^

By me a coffee