@@ -31,6 +31,9 @@ class ThirdStepReservationViewController: BaseViewController {
31 else { return }
31 else { return }
33 navigationItem.title = data.address
33 navigationItem.title = data.address
35+ guard let res = reservation else { return }
36+ thirdStepView?.bind(withModel: res)
@@ -63,6 +66,7 @@ class ThirdStepReservationViewController: BaseViewController {
63 setupMap()
66 setupMap()
65 reservationService = ReservationsService(apiClient: APIClient.shared)
68 reservationService = ReservationsService(apiClient: APIClient.shared)
69+ navigationController?.navigationBar.prefersLargeTitles = false
68 override func viewWillAppear(_ animated: Bool) {
72 override func viewWillAppear(_ animated: Bool) {
@@ -78,22 +82,26 @@ class ThirdStepReservationViewController: BaseViewController {
85+ let width = view.frame.width
81 if reservation.establishment == 1 {
86 if reservation.establishment == 1 {
82 mapView = MapView1.loadFromNib()
87 mapView = MapView1.loadFromNib()
88+ mapView?.scrollViewParent.contentInset = UIEdgeInsets(top: 0,
93+ mapView?.scrollViewParent.setContentOffset(CGPoint(x: 0, y: 50), animated: false)
84 mapView = MapView2.loadFromNib()
95 mapView = MapView2.loadFromNib()
96+ mapView?.scrollViewParent.setContentOffset(CGPoint(x: 0, y: -100), animated: false)
97+ mapView?.scrollViewParent.contentInset = UIEdgeInsets(top: 100,
87 contentForMap.addSubviewThatFills(mapView)
103 contentForMap.addSubviewThatFills(mapView)
89− let width = view.frame.width
90− mapView?.scrollViewParent.contentInset = UIEdgeInsets(top: 0,
95− mapView?.scrollViewParent.setContentOffset(CGPoint(x: 0, y: -100), animated: false)
97 mapView?.isUserInteractionEnabled = false
105 mapView?.isUserInteractionEnabled = false
98 mapView?.scrollToTable(table: reservation.reservedTable)
106 mapView?.scrollToTable(table: reservation.reservedTable)