Development guidelines and coding standards for Spotify Story Teller iOS app built with SwiftUI. Covers build commands, code style, imports, formatting, error handling, and environment configuration.
This skill provides guidance for working with the Spotify Story Teller iOS application codebase. It includes build commands, code style guidelines, and best practices for SwiftUI development.
Use this skill when:
When building or testing the application:
1. **Build the project**: Open in Xcode and use Product > Build (⌘B)
2. **Run the app**: Use Product > Run (⌘R)
3. **Run all tests**: Use Product > Test (⌘U)
4. **Run single test**: Click the test diamond icon in the Xcode test file gutter
```swift
import Foundation
import SwiftUI
import Combine
```
```swift
public let username: String // explicit for public API
let count = 0 // inferred
```
- `@State` for local view state
- `@EnvironmentObject` for shared app state
- `@Binding` for two-way data flow
When working with the codebase:
```swift
import Foundation
import SwiftUI
import Combine
import SpotifyAPI
```
```swift
struct ContentView: View {
@State private var isLoading = false
@EnvironmentObject var appState: AppState
@Binding var selectedItem: Item?
}
```
```swift
do {
let data = try await fetchData()
processData(data)
} catch {
print("Failed to fetch data: \(error.localizedDescription)")
showErrorAlert = true
}
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/spotify-story-teller-development-guide/raw