{"id":15170625,"url":"https://github.com/anbalagand/imodels","last_synced_at":"2026-02-07T05:02:41.712Z","repository":{"id":93798738,"uuid":"603507757","full_name":"AnbalaganD/iModels","owner":"AnbalaganD","description":"This library provide device(iPhone) model name with human readable way","archived":false,"fork":false,"pushed_at":"2024-08-10T14:30:05.000Z","size":224,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-10T22:42:14.710Z","etag":null,"topics":["cocoapods","device-model","devicename","ios","ipad","iphone","modelname","spm","swift","swiftpackagemanager","swiftui","watchos"],"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/AnbalaganD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2023-02-18T18:14:05.000Z","updated_at":"2024-08-19T11:52:00.000Z","dependencies_parsed_at":"2023-12-15T08:29:50.760Z","dependency_job_id":"211e2b06-6dec-4651-903c-273326c73bbb","html_url":"https://github.com/AnbalaganD/iModels","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnbalaganD%2FiModels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnbalaganD%2FiModels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnbalaganD%2FiModels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AnbalaganD%2FiModels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AnbalaganD","download_url":"https://codeload.github.com/AnbalaganD/iModels/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219865149,"owners_count":16555931,"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","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":["cocoapods","device-model","devicename","ios","ipad","iphone","modelname","spm","swift","swiftpackagemanager","swiftui","watchos"],"created_at":"2024-09-27T08:04:17.689Z","updated_at":"2026-02-07T05:02:41.708Z","avatar_url":"https://github.com/AnbalaganD.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iModels\n\n[![Version](https://img.shields.io/cocoapods/v/iModels.svg?style=flat)](https://cocoapods.org/pods/iModels)\n[![License](https://img.shields.io/cocoapods/l/iModels.svg?style=flat)](LICENSE)\n[![Swift Package Manager](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat-square)](https://swiftpackageindex.com/AnbalaganD/iModels)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FAnbalaganD%2FiModels%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/AnbalaganD/iModels)\n\nThis library facilitates developers in easily determining the device model, which is particularly valuable for gathering statistics on user device distribution. It offers various other benefits as well.\n\n## Examples\n\nTo run the **Example** project, clone the repo, and run `pod install` from the Example directory first, then open the Xcode workspace.\n\nTo run the **iModelsExample** project, clone the repo, and open the Xcode project.\n\n## Installation\n\n### Swift Package manager (SPM)\n\niModels is available through [SPM](https://github.com/AnbalaganD/iModels). Use below URL to add it as a dependency\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/AnbalaganD/iModels\", .upToNextMajor(from: \"0.1.8\"))\n]\n```\n\n### CocoaPods\n\niModels is available through [CocoaPods](https://cocoapods.org/pods/iModels). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'iModels'\n```\n\n\u003e **Note:** CocoaPods updates will not be provided for upcoming releases, as CocoaPods is no longer actively supported and has entered maintenance mode.\n\n## Usage\n```swift\nimport iModels\n\nDevice.modelName // The most commonly used\nDevice.identifier // Apple's identifiers\n\n// for other device identifiers\nprint(\"\\(Device.modelName(for: \"iPhone8,2\") ?? \"unknown\")\")\n// output: iPhone 6s Plus\n```\n\n#### Simulator Note\nThe `Device.modelName` variable will now append the name \"Simulator\" to the model name when running within the simulator. If you want to avoid this behavior, you can use `Device.modelName(for: Device.identifier)`.\n\n## Authors\n\n* [Anbalagan D](mailto:anbu94p@gmail.com)\n* [Bill Shirley](mailto:bshirley@shirl.com)\n\n## License\n\niModels is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanbalagand%2Fimodels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanbalagand%2Fimodels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanbalagand%2Fimodels/lists"}