Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/significa/ios-swiftui-tca-example

PokemonCards - SwiftUI + Composable Architecture Example
https://github.com/significa/ios-swiftui-tca-example

Last synced: 24 days ago
JSON representation

PokemonCards - SwiftUI + Composable Architecture Example

Awesome Lists containing this project

README

        

# PokemonCards - SwiftUI + Composable Architecture Example

This repository has a small example using the [swift-composable-architecture](https://github.com/pointfreeco/swift-composable-architecture) and the [Pokemon TGC API](https://pokemontcg.io). This also inspired [this](https://github.com/pointfreeco/swift-composable-architecture) Coletiv Blog post

## 🚧 Dependencies

- [swift-composable-architecture](https://github.com/pointfreeco/swift-composable-architecture) (`~> 0.9.0`)
- [Kingfisher](https://github.com/onevcat/Kingfisher) (`~> 5.15.8`)
- [SnapshotTesting](https://github.com/pointfreeco/swift-snapshot-testing) (`~> 1.8.2`)

## 🏎 Kickstart

### Initial setup

1. Install [SwiftLint](https://github.com/realm/SwiftLint) `brew install swiftlint`
2. Install [SwiftFormat](https://github.com/nicklockwood/SwiftFormat) pre-commit hook following [this](https://github.com/nicklockwood/SwiftFormat#git-pre-commit-hook)
- If you are using the SourceTree client please also follow [this link](https://github.com/typicode/husky/issues/390#issuecomment-577008221)
3. Use the `.xcodeproj` file to open the Xcode project
4. Go to the `.xconfig` files under `PokemonCards/Resources/Configs` and insert your API Key on `API_KEY` var. You can get yours from the [Pokemon TGC](https://dev.pokemontcg.io/) website.