Swiftpack.co - andyfinnell/AppStateKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by andyfinnell.
andyfinnell/AppStateKit 0.0.1
Unidirectional dataflow app architecture framework for SwiftUI apps
⭐️ 1
🕓 1 year ago
iOS macOS tvOS
.package(url: "https://github.com/andyfinnell/AppStateKit.git", from: "0.0.1")

AppStateKit

A Redux-like framework for building SwiftUI based apps. Influenced by Pointfree Co's Composable Architecture.

Requirements

  • Swift 5.7 or greater
  • iOS/tvOS 15 or greater OR macOS 12 or greater

Installation

Currently, AppStateKit is only available as a Swift Package.

...using a Package.swift file

Open the Package.swift file and edit it:

  1. Add AppStateKit repo to the dependencies array.
  2. Add AppStateKit as a dependency of the target that will use it
// swift-tools-version:5.7

import PackageDescription

let package = Package(
  // ...snip...
  dependencies: [
    .package(url: "https://github.com/andyfinnell/AppStateKit.git", from: "0.0.1")
  ],
  targets: [
    .target(name: "MyTarget", dependencies: ["AppStateKit"])
  ]
)

Then build to pull down the dependencies:

$ swift build

...using Xcode

Use the Swift Packages tab on the project to add AppStateKit:

  1. Open the Xcode workspace or project that you want to add AppStateKit to
  2. In the file browser, select the project to show the list of projects/targets on the right
  3. In the list of projects/targets on the right, select the project
  4. Select the "Swift Packages" tab
  5. Click on the "+" button to add a package
  6. In the "Choose Package Repository" sheet, search for "https://github.com/andyfinnell/AppStateKit.git"
  7. Click "Next"
  8. Choose the version rule you want
  9. Click "Next"
  10. Choose the target you want to add AppStateKit to
  11. Click "Finish"

GitHub

link
Stars: 1
Last commit: 4 days ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Release Notes

Initial version
2 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics