swift5-module-template alternatives and similar libraries
Based on the "Project setup" category.
Alternatively, view swift5-module-template alternatives based on common mentions on social networks and blogs.
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of swift5-module-template or a related project?
README
Swift 5 Module Template
Use this template as a starting point for any Swift 5 module that you want other people to include in their projects.
STATUS: This template is ready and works in production code, compatible with Xcode 13.1 (13A1030d)
Features
Your new Swift 5 module will immediately have working, compilable code, and all these features:
- Ability to be used from Swift Package Manager, CocoaPods and Carthage
- Clean folder structure
- MIT license
- Testing as a standard
- Turnkey access to GitHub Actions testing
- Semantic versioning and a CHANGELOG
- Included example/demo app using SwiftUI
We make the assumption you are using an Xcode project to manage your code.
How to use this
Clone or download a release and run the ./configure
program. It will ask you some questions and generate a project.
Or if you have CocoaPods installed, you can alternatively use:
pod lib create --verbose --template-url='https://github.com/fulldecent/swift5-module-template.git' MyNewPodName
You then add all the interesting features you want your module to have.
Using CocoaPods to manage dependencies for your example app
You distribute an example app with your new Swift module to show that it works. You may also decide to add UI tests to your example app and some people like to use testing frameworks for those UI tests. If you would like to use CocoaPods to manage the dependencies of your example app, please see the discussion at https://github.com/fulldecent/swift5-module-template/issues/8.
Automating the configure script
To skip interactive prompts in the ./configure
script, use these environment variables:
Template variable | Environment variable |
---|---|
__PROJECT_NAME__ |
SMT_PROJECT_NAME |
__ORGANIZATIONΒ NAME__ |
SMT_ORGANIZATION_NAME |
com.AN.ORGANIZATION.IDENTIFIER |
SMT_COM_AN_ORGANIZATION_IDENTIFIER |
__AUTHORΒ NAME__ |
SMT_AUTHOR_NAME |
__TODAYS_DATE__ |
SMT_TODAYS_DATE |
__TODAYS_DATE__ (dateΒ format) |
SMT_DATE_FORMAT_STRING Note: this will ask you for todayβs date but it will use this format in the template. |
__TODAYS_YEAR__ |
SMT_TODAYS_YEAR |
__GITHUB_USERNAME__ |
SMT_GITHUB_USERNAME |
For example, you may use: export SMT_ORGANIZATION_NAME='Awesome Org'
before running ./configure
.
How it works
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β Use β β Save β βUse your own β
β Xcode ββSave recipeββΆβ template ββ./configureββΆβ module β
βββββββββββββββ βββββββββββββββ βββββββββββββββ
β² β² β² β² β²
β β β β β
Contributors to this project End users of this project
Contributing
See the file [Recipe.md](Recipe.md) for the complete steps (e.g. Open Xcode, make new project, click here, type that, β¦) of how we made the template.
*Note that all licence references and agreements mentioned in the swift5-module-template README section above
are relevant to that project's source code only.