Contains common utility functions and extensions.
- List features here
- iOS 13+
- Xcode 13+
Following our style guide should:
- Make it easier to read and begin understanding the unfamiliar code.
- Make code easier to maintain.
- Reduce simple programmer errors.
- Reduce cognitive load while coding.
- Keep discussions on diffs focused on the code's logic rather than its style.
Note that brevity is not a primary goal.
// swift-tools-version: 5.6
import PackageDescription
let package = Package(
name: "YourTestProject",
dependencies: [
.package(url: "git@github.com:shortcut/shortcut-swiftui-ios.git", from: "0.0.1")
],
targets: [
.target(name: "YourTestProject", dependencies: ["ShortcutUI"])
]
)
And then import wherever needed: import ShortcutUI
- Using Xcode 11 or greater go to File > Swift Packages > Add Package Dependency
- Paste the project URL:
git@github.com:shortcut/shortcut-swiftui-ios.git
- Click on next and select the project target
If you have doubts, please, check the following links:
After successfully retrieved the package and added it to your project, just import ShortcutUI
and you can get the full benefits of it.
import ShortcutUI
...
- Clone the repository
- Create your feature branch
- Open the
Package.swift
file - Perform your changes, debug, run the unit tests
- Make sure that all the tests pass and there are no Xcode warnings or lint issues
- Open a pull request