Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CaptureContext/basic-ios-template

Open more actions menu
 
 

Repository files navigation

basic-ios-template

SwiftPM 6.2 @maximkrouk

Getting started

  1. Fork the repo as a template.

  2. Create a local folder for your app and navigate to it

mkdir <YourAppName>
cd <YourAppName>
  1. Clone the template, rename cloned folder to App and navigate to it
git clone https://github.com/<your-profile>/<your-app-name>-ios.git
mv <your-app-name>-ios App
cd App

You can choose any name or avoid nesting, but we recommend to follow the example (including the case) to get the best result 😌

  1. Rename project.yml and Previews/.preview.yml contents accordingly to your needs
  • bundleIdPrefix: org-domain.org-host to your bundleID prefix
  • targets: template-app-universal to <your-app-name>-universal
  • info.properties.CFBundleDisplayName: TemplateApp to <YourAppName>
  • see xcodegen for more configuration info
  1. Bootstrap the environment
make bootstrap

See Makefile for details

Than you can commit changes and you are ready for the actual development 😎

open Package.xcworkspace

Structure

See Extensions and Dependencies for more details for these modules

Main work is happenning in the root package.

  • <#Module#>Feature naming is used for modules user directly interact with
  • <#Service#> naming modules is used for modules that are used by developers to build feature modules

Basically your Sources folder structure will look kinda like this

Sources { // Main modules
  AppFeature // Entry point for the app, contains AppDelegate, RootViewController, AppState etc., coordinates app flows
  MainFeature // Main app flow, non-main flows may be Onboarding/Admin/Auth for example.
  <#SomeFeature#>Feature // Any other feature
  AppUI // App-specific UI components
  APIClient // Service module example
  Resources // Contains shared resources and generated boilerplate, but you can declare target-specific resources too, see https://github.com/capturecontext/spmgen
}

Note

Scripts can be improved later so we advice you to keep an eye on the repo and a tracking reference to our main branch to keep your infrastructure up to date 🚀

Recommended dependencies

Will be recommended later (yet in alpha or beta)

Releases

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.