Commit Graph

12 Commits

Author SHA1 Message Date
Kiryl Kaveryn
2861d9db2a [ios] replase ints/doubles with string for track stats in ios
to pass already formatted by the core values instead of formatting them later using the same core formatters

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-06-07 16:25:16 +02:00
Kiryl Kaveryn
4cf5ec3c86 [ios] refactor search modes switching
For the expanded iphone mode (in portait) only the searchEverywhere will be used
For the halfscreen everywhere + viewport
For the iPad the everywhere + viewport is always enabled
For the hidden only the viewport

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-06-07 16:25:16 +02:00
Kiryl Kaveryn
09c704ee8f [ios] rename isIPad to isiPad
To match swift naming conventions

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-06-07 16:25:16 +02:00
Kiryl Kaveryn
9fb3a509dc [ios] skip search query duplications for history
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-05-29 09:49:07 +02:00
Kiryl Kaveryn
8a331c4c67 [ios] fix route building error while searching when current location in none
Fixes issue https://github.com/organicmaps/organicmaps/issues/10606

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-05-29 09:49:07 +02:00
Kiryl Kaveryn
7be49ab00a [ios] remove primary green background from the search screen header
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-05-29 09:49:07 +02:00
Kiryl Kaveryn
96c24cf973 [ios] refactor search - use SearchQuery class instead of text+locale+isCategory
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-05-29 09:49:07 +02:00
Kiryl Kaveryn
09096ac3a3 [ios] fix search count calculation for ?edits debug command
During the searching the `searchCount` tracks the progress and notifies the observers (when 0 than completed).

When the crash When the `?edits` command is typed into the search field happens the `searchInViewport` m_onStarted callback is called but m_onStarted is not (in the core). m_onStarted is executed as a separate UI task. But for the `?edits` command it is not executed at all and produces the data race in the `searchCount` and breaks the UI updates for this debug command.

Since the `searchEverywhere` and `searchInViewport` are called simultaneously while typing the query there are no reason to track the `searchInViewport` searches. Only the `searchEverywhere` is enough. `searchInViewport` is not affecting the platform UI at all - its just show the marks on the map.

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-05-29 09:49:07 +02:00
Kiryl Kaveryn
6649c8f92a [ios] match divider/separator color with the ios system
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-05-29 09:49:07 +02:00
Konstantin Pastbin
a8349ffa85 [api] Replace om:// scheme with cm://
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
2025-05-26 17:33:53 +07:00
Kiryl Kaveryn
103d660603 [ios] refactor Toast class and improve toast message style
1. update style: bigger fonts and insets
2. update background blur
3. get rid of MWM prefix
4. replace the timer with the simplier dispatch async after. In this case there is no needed to create a timer for each toasts message just to add a timeout
5. reorder Toast class methods
6. replace the instance `show` method with a `static show`. Because there non needed to call show every time. We do not have stored toast that will be showed in different places thane created.
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
2025-05-19 10:52:42 +02:00
Konstantin Pastbin
e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00