This is a copy of the yandex mapkit demo repository with the following changes:
- As a pull-up of the library dependency XCFramework is used instead of CocoaPods;
- The layout is done entirely by code using SnapKit;
- The project is being built using XCodeGen;
- Minimum OS version raised to iOS 13;
- Added demonstration of the light/dark map theme;
- Added the ability to switch panoramas to historical ones.
To generate *.xcodeproj
-file use command:
make generate
To generate and open immediately use command:
make generate open
Important
Since Github limits the size of stored files to 100 MB, downloading the *.xcframework
is performed with make generate
using curl
.
Set your key in the file Resources/Configs/YMKConfig.xcconfig
.
YMK_API_KEY = {YOUR_API_KEY}
For download the XCFramework, use the command in the terminal:
curl --remote-name https://maps-ios-pods-public.s3.yandex.net/YandexMapsMobile-4.4.0-lite.framework.zip
curl --remote-name https://maps-ios-pods-public.s3.yandex.net/YandexMapsMobile-4.4.0-full.framework.zip