{"id":19313960,"url":"https://github.com/stleamist/mkzoomlevel","last_synced_at":"2025-10-15T06:31:53.695Z","repository":{"id":133884825,"uuid":"264855247","full_name":"stleamist/MKZoomLevel","owner":"stleamist","description":"An implementation of logarithmic zoom level getter \u0026 setter missed in MKMapView.","archived":false,"fork":false,"pushed_at":"2020-12-21T15:00:12.000Z","size":339,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-22T16:43:13.904Z","etag":null,"topics":["ios","map","mapkit","mkmapview","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stleamist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-05-18T07:02:37.000Z","updated_at":"2024-09-23T13:01:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"ef5f5fa9-8f82-4f7f-8bc1-d691ecaa8289","html_url":"https://github.com/stleamist/MKZoomLevel","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/stleamist/MKZoomLevel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stleamist%2FMKZoomLevel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stleamist%2FMKZoomLevel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stleamist%2FMKZoomLevel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stleamist%2FMKZoomLevel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stleamist","download_url":"https://codeload.github.com/stleamist/MKZoomLevel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stleamist%2FMKZoomLevel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279058350,"owners_count":26094844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","map","mapkit","mkmapview","swift"],"created_at":"2024-11-10T00:41:43.190Z","updated_at":"2025-10-15T06:31:53.690Z","avatar_url":"https://github.com/stleamist.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"/Docs/Images/MKZoomLevel-Icon.svg\"\u003e\n    \u003cimg src=\"/Docs/Images/MKZoomLevel-Logotype.svg\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/stleamist/MKZoomLevel/releases/latest\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/v/tag/stleamist/MKZoomLevel?label=version\u0026labelColor=303840\" alt=\"version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://swift.org/\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Swift-5.0+-F05138?labelColor=303840\" alt=\"Swift: 5.0+\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.apple.com/ios/\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/iOS-9.0+-007AFF?labelColor=303840\" alt=\"iOS: 9.0+\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.apple.com/macos/\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/macOS-10.11+-007AFF?labelColor=303840\" alt=\"macOS: 10.11+\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://developer.apple.com/tvos/\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/tvOS-9.2+-007AFF?labelColor=303840\" alt=\"tvOS: 9.2+\"\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://github.com/stleamist/MKZoomLevel/actions?query=workflow%3A%22Build+on+Xcode+%28latest%29%22\"\u003e\n        \u003cimg src=\"https://github.com/stleamist/MKZoomLevel/workflows/Build%20on%20Xcode%20(latest)/badge.svg\" alt=\"Build on Xcode (latest)\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/stleamist/MKZoomLevel/actions?query=workflow%3A%22Build+on+Xcode+%2812+beta%29%22\"\u003e\n        \u003cimg src=\"https://github.com/stleamist/MKZoomLevel/workflows/Build%20on%20Xcode%20(12%20beta)/badge.svg\" alt=\"Build on Xcode (12 beta)\"\u003e\n    \u003c/a\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://swift.org/package-manager/\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/SwiftPM-compatible-29CC52?labelColor=303840\" alt=\"SwiftPM: compatible\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/stleamist/MKZoomLevel?color=blue\u0026labelColor=303840\" alt=\"license\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://twitter.com/stleamist\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/contact-@stleamist-1DA1F2?labelColor=303840\" alt=\"contact: @stleamist\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n# MKZoomLevel\nMKZoomLevel is an implementation of zoom level getter \u0026 setter for MKMapView that works exactly the same as the private `_zoomLevel` property without resetting the camera angle.\n\n## Features\n- It returns exactly the same value as the internal `_zoomLevel` value as well as when the orientation or the angle is changed, which is in the `MKMapView`’s private API.\n- It preserves the value of `heading` and `pitch` of the `camera` property for a new zoom level as they are, rather than resetting the camera angle.\n- It returns the latest zoom level even when the animation of region change is not finished, in contrast with the `camera` property.\n\n## Usage\n```swift\nimport MapKit\nimport MKZoomLevel\n\nlet mapView = MKMapView()\n\n// Get the zoom level\nmapView.zoomLevel\n\n// Set the zoom level\nmapView.zoomLevel = 16.0\n\n// Set the zoom level with an animation\nmapView.setZoomLevel(16.0, animated: true)\n```\n\n## Installation\n### Swift Package Manager\nAdd this repository as a dependency in your [`Package.swift`](https://developer.apple.com/documentation/swift_packages/package):\n\n```swift\n// swift-tools-version:5.0\n\nimport PackageDescription\n\nlet package = Package(\n    ...,\n    dependencies: [\n        .package(url: \"https://github.com/stleamist/MKZoomLevel.git\", .upToNextMajor(from: \"1.2.0\"))\n    ],\n    ...\n)\n```\n\n### Xcode\nSelect File \\\u003e Swift Packages \\\u003e Add Package Dependency, then enter the following URL:\n\n```\nhttps://github.com/stleamist/MKZoomLevel.git\n```\n\nFor more details, see [Adding Package Dependencies to Your App](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app).\n\n## License\nMKZoomLevel is released under the MIT license. See [LICENSE](/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstleamist%2Fmkzoomlevel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstleamist%2Fmkzoomlevel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstleamist%2Fmkzoomlevel/lists"}