{"id":19083121,"url":"https://github.com/alemar11/mechanica","last_synced_at":"2025-09-11T23:41:17.881Z","repository":{"id":42444051,"uuid":"74565267","full_name":"alemar11/Mechanica","owner":"alemar11","description":"A cross-platform library of Swift utils to ease your iOS | macOS | watchOS | tvOS and Linux development.","archived":false,"fork":false,"pushed_at":"2023-03-16T20:23:55.000Z","size":11820,"stargazers_count":31,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T12:52:24.938Z","etag":null,"topics":["carthage","cocoapods","ios","library","linux","macos","swift","swift-extensions","swift-package","swift-package-manager","swift-utilities","tvos","watchos","xcode"],"latest_commit_sha":null,"homepage":"http://www.alessandromarzoli.com/Mechanica/","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/alemar11.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":"Support/Info-Tests.plist","governance":null,"roadmap":null,"authors":null}},"created_at":"2016-11-23T10:18:45.000Z","updated_at":"2025-05-12T07:52:33.000Z","dependencies_parsed_at":"2024-01-18T05:26:36.219Z","dependency_job_id":"8ef417b2-18c4-4836-bef2-c866e7731b7d","html_url":"https://github.com/alemar11/Mechanica","commit_stats":{"total_commits":1126,"total_committers":4,"mean_commits":281.5,"dds":"0.46802841918294846","last_synced_commit":"076c436ae3ec24af1861b656c0f660d1ca65426f"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/alemar11/Mechanica","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemar11%2FMechanica","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemar11%2FMechanica/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemar11%2FMechanica/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemar11%2FMechanica/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alemar11","download_url":"https://codeload.github.com/alemar11/Mechanica/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alemar11%2FMechanica/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265625570,"owners_count":23800624,"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":["carthage","cocoapods","ios","library","linux","macos","swift","swift-extensions","swift-package","swift-package-manager","swift-utilities","tvos","watchos","xcode"],"created_at":"2024-11-09T02:46:10.981Z","updated_at":"2025-07-17T16:03:50.121Z","avatar_url":"https://github.com/alemar11.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Mechanica: Swift Utils](https://raw.githubusercontent.com/alemar11/Mechanica/assets/mechanica.png)\n\n## Mechanica\n[![GitHub release](https://img.shields.io/github/release/alemar11/Mechanica.svg)](https://github.com/alemar11/Mechanica/releases) \n\nA library of Swift utils to ease your iOS, macOS, watchOS, tvOS and Linux development.\n\n- [Requirements](#requirements)\n- [Documentation](#documentation)\n- [Installation](#installation)\n- [License](#license)\n- [Contributing](#contributing)\n\n## Requirements\n\n[![Swift 5.2](https://img.shields.io/badge/Swift-5.2-orange.svg?style=flat)](https://developer.apple.com/swift)\n![Platforms](https://img.shields.io/badge/Platform-iOS%2010%2B%20|%20macOS%2010.12+%20|%20tvOS%2010+%20|%20watchOS%203+-blue.svg) \n![Xcode](https://img.shields.io/badge/Xcode-12-blue.svg) \n\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Mechanica.svg)](https://cocoapods.org/pods/Mechanica)\n\n## Documentation\n\nDocumentation is [available online](http://www.alessandromarzoli.com/Mechanica/).\n\n\u003e [http://www.alessandromarzoli.com/Mechanica/](http://www.alessandromarzoli.com/Mechanica/)\n\n## Installation\n\n### CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\n\u003e CocoaPods 1.1.0+ is required to build Mechanica 1.0.0+.\n\nTo integrate Mechanica into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '10.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod 'Mechanica', '~\u003e 2.2.0'\nend\n```\n\nThen, run the following command:\n\n```bash\n$ pod install\n```\n\n### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n```bash\n$ brew update\n$ brew install carthage\n```\n\nTo integrate Mechanica into your Xcode project using Carthage, specify it in your `Cartfile`:\n\n```ogdl\ngithub \"alemar11/Mechanica\" ~\u003e 2.2.0\n```\n\nRun `carthage update` to build the framework and drag the built `Mechanica.framework` into your Xcode project.\n\n### Swift Package Manager\n\nThe [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. \nOnce you have your Swift package set up, adding Mechanica as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/alemar11/Mechanica.git\", .upToNextMajor(from: \"3.1.0\"))\n]\n```\n\n### Manually\n\nIf you prefer not to use either of the aforementioned dependency managers, you can integrate Mechanica into your project manually.\n\n#### Embedded Framework\n\n- Open up Terminal, `cd` into your top-level project directory, and run the following command \"if\" your project is not initialized as a git repository:\n\n```bash\n$ git init\n```\n\n- Add Mechanica as a git [submodule](http://git-scm.com/docs/git-submodule) by running the following command:\n\n```bash\n$ git submodule add https://github.com/alemar11/Mechanica.git\n```\n\n- Open the new `Mechanica` folder, and drag the `Mechanica.xcodeproj` into the Project Navigator of your application's Xcode project.\n\n    \u003e It should appear nested underneath your application's blue project icon. Whether it is above or below all the other Xcode groups does not matter.\n\n- Select the `Mechanica.xcodeproj` in the Project Navigator and verify the deployment target matches that of your application target.\n- Next, select your application project in the Project Navigator (blue project icon) to navigate to the target configuration window and select the application target under the \"Targets\" heading in the sidebar.\n- In the tab bar at the top of that window, open the \"General\" panel.\n- Click on the `+` button under the \"Embedded Binaries\" section.\n- You will see two different `Mechanica.xcodeproj` folders each with two different versions of the `Mechanica.framework` nested inside a `Products` folder.\n\n    \u003e It does not matter which `Products` folder you choose from, but it does matter whether you choose the top or bottom `Mechanica.framework`.\n\n- Select the top `Mechanica.framework` for iOS and the bottom one for macOS.\n\n    \u003e You can verify which one you selected by inspecting the build log for your project. The build target for `Mechanica` will be listed as either `Mechanica iOS`, `Mechanica macOS`, `Mechanica tvOS` or `Mechanica watchOS`.\n\n\n## License\n\n[![License MIT](https://img.shields.io/badge/License-MIT-lightgrey.svg?style=flat)](https://github.com/alemar11/Mechanica/blob/master/LICENSE.md)\n\nMechanica is released under the MIT license. See [LICENSE](./LICENSE.md) for details.\n\n## Contributing\n\nPull requests are welcome!  \n[Show your ❤ with a ★](https://github.com/tinrobots/mechanica/stargazers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falemar11%2Fmechanica","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falemar11%2Fmechanica","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falemar11%2Fmechanica/lists"}