@@ -32,7 +32,6 @@ struct ConfirmCreatingSessionView: View {
3232 private var shouldTrackLocation : Bool { sessionContext. sessionType == . mobile && !sessionContext. locationless }
3333
3434 init ( creatingSessionFlowContinues: Binding < Bool > , sessionName: String , initialLocation: CLLocation ? = nil ) {
35- Log . warning ( " Confirm creating session view initial location: \( initialLocation) " )
3635 _creatingSessionFlowContinues = . init( projectedValue: creatingSessionFlowContinues)
3736 self . sessionName = sessionName
3837 self . initialLocation = initialLocation
@@ -184,11 +183,8 @@ extension ConfirmCreatingSessionView {
184183 sessionContext. saveCurrentLocation ( lat: krakowLat, log: krakowLong)
185184 return
186185 #endif
187- Log . warning ( " getAndSaveStartingLocation location entered " )
188186
189187 if ( sessionContext. sessionType == . fixed && sessionContext. isIndoor!) || sessionContext. locationless {
190- Log . warning ( " getAndSaveStartingLocation location entered \( sessionContext. sessionType == . fixed ) , locationless: \( sessionContext. locationless) " )
191- Log . warning ( " getAndSaveStartingLocation location entered 2 \( sessionContext. isIndoor!) " )
192188 sessionContext. saveCurrentLocation ( lat: 200 , log: 200 )
193189 } else if ( sessionContext. sessionType == . fixed && !sessionContext. isIndoor!) {
194190
@@ -199,33 +195,15 @@ extension ConfirmCreatingSessionView {
199195 return
200196 }
201197
202- Log . warning ( " HERE lat: \( lat) , lon: \( lon) " )
203- // MARTA: Above is working but the session is in the ocean
204- // Chek: Was michael's example the same? Maybe just 0,0 is in the ocean but now this is fixed?
205- // This can be due to area instead of specific place differences
206- // Check: Did my changes actually fix anything? Or was is still in a good place just not zoomed out?
207- // Map is still not fixed (or is it just showing the sea?)
208- // W pewnym momencie lokalizacja sie zmienia w ConfirmCreatingSessionView
209-
210- /*[09-29-2025 15:32:16.664] ConfirmCreatingSessionView.swift: ⚠️ Confirm creating session view initial location: Optional((51.507, -0.128))
211- [09-29-2025 15:32:17.184] ConfirmCreatingSessionView.swift: ⚠️ Confirm creating session view initial location: Optional((51.507, -0.128))
212- [09-29-2025 15:32:17.453] ChooseCustomLocationView.swift: ⚠️ 1: <+51.35636507,+1.96028609> +/- 0.00m (speed -1.00 mps / course -1.00) @ 29/09/2025, 17:32:17 Central European Summer Time
213- [09-29-2025 15:32:17.454] ConfirmCreatingSessionView.swift: ⚠️ Confirm creating session view initial location: Optional((51.356, 1.960))
214- [09-29-2025 15:32:17.941] ConfirmCreatingSessionView.swift: ⚠️ Confirm creating session view initial location: Optional((51.356, 1.960))*/
215-
216198 sessionContext. saveCurrentLocation ( lat: lat, log: lon)
217199
218200 } else {
219- //Log.warning("getAndSaveStartingLocation check for lat and long: \(locationTracker.location.value as Any)")
220-
221201 guard let lat = ( locationTracker. location. value? . coordinate. latitude) ,
222202 let lon = ( locationTracker. location. value? . coordinate. longitude)
223203 else {
224204 Log . error ( " No location found! " )
225205 return
226206 }
227-
228- //Log.warning("getAndSaveStartingLocation lat: \(lat), lon: \(lon)")
229207 sessionContext. saveCurrentLocation ( lat: lat, log: lon)
230208 }
231209 }
0 commit comments