iOS Swift Development

iOS Swift Development

Guides a coding agent in building native iOS apps with Swift, using MVVM, SwiftUI, URLSession networking, Combine and Core Data.

Skill files6 files

references/

scripts/

templates/

SKILL.md102 lines
1
---
2
name: ios-swift-development
3
description: >
4
Develop native iOS apps with Swift. Covers MVVM architecture, SwiftUI,
5
URLSession for networking, Combine for reactive programming, and Core Data
6
persistence.
7
---
8
9
# iOS Swift Development
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Build high-performance native iOS applications using Swift with modern frameworks including SwiftUI, Combine, and async/await patterns.
22
23
## When to Use
24
25
- Creating native iOS applications with optimal performance
26
- Leveraging iOS-specific features and APIs
27
- Building apps that require tight hardware integration
28
- Using SwiftUI for declarative UI development
29
- Implementing complex animations and transitions
30
31
## Quick Start
32
33
Minimal working example:
34
35
```swift
36
import Foundation
37
import Combine
38
39
struct User: Codable, Identifiable {
40
let id: UUID
41
var name: String
42
var email: String
43
}
44
45
class UserViewModel: ObservableObject {
46
@Published var user: User?
47
@Published var isLoading = false
48
@Published var errorMessage: String?
49
50
private let networkService: NetworkService
51
52
init(networkService: NetworkService = .shared) {
53
self.networkService = networkService
54
}
55
56
@MainActor
57
func fetchUser(id: UUID) async {
58
isLoading = true
59
errorMessage = nil
60
61
// ... (see reference guides for full implementation)
62
```
63
64
## Reference Guides
65
66
Detailed implementations in the `references/` directory:
67
68
| Guide | Contents |
69
|---|---|
70
| [MVVM Architecture Setup](references/mvvm-architecture-setup.md) | MVVM Architecture Setup |
71
| [Network Service with URLSession](references/network-service-with-urlsession.md) | Network Service with URLSession |
72
| [SwiftUI Views](references/swiftui-views.md) | SwiftUI Views |
73
74
## Best Practices
75
76
### ✅ DO
77
78
- Use SwiftUI for modern UI development
79
- Implement MVVM architecture
80
- Use async/await patterns
81
- Store sensitive data in Keychain
82
- Handle errors gracefully
83
- Use @StateObject for ViewModels
84
- Validate API responses properly
85
- Implement Core Data for persistence
86
- Test on multiple iOS versions
87
- Use dependency injection
88
- Follow Swift style guidelines
89
90
### ❌ DON'T
91
92
- Store tokens in UserDefaults
93
- Make network calls on main thread
94
- Use deprecated UIKit patterns
95
- Ignore memory leaks
96
- Skip error handling
97
- Use force unwrapping (!)
98
- Store passwords in code
99
- Ignore accessibility
100
- Deploy untested code
101
- Use hardcoded API URLs
102

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,337 prompts

More by @OpenSourceBuffGuy

See all
Gold filigree and paper relief fashion figure prompt image

Gold filigree and paper relief fashion figure

Fill-in template for a luxury 3D bas-relief fashion artwork, with material rules for gold filigree, glass, embroidery or papercraft and slots for pose, outfit and lighting.

image-prompt, template, placeholders, papercraft, embroidery, sculpture, luxury, fashion, fashion-shoot, editorial, 3d-render, square-format, text-rendering, illustration, for-artists, for-designers, nano-banana, long-form

Clumsy delivery boy animated comedy short prompt image

Clumsy delivery boy animated comedy short

Describes a Pixar-style 3D animated comedy short in which a clumsy delivery boy causes a chain of slapstick chaos and ends up a hero in a seaside city.

video-prompt, animation, pixar-style, comedy, humorous, short-film, storytelling, camera-movement, tracking-shot, scene-transitions, music-video, widescreen, family-friendly, cozy, vibrant-colors, cartoon, whimsical, cityscape, summer, for-filmmakers, long-form, encouraging, structured-output, 3d-render, text-rendering

Young woman packs gym bag in bedroom prompt image

Young woman packs gym bag in bedroom

Generates a 30-second early-2000s Japanese gym-day vlog in MiniDV camcorder style, with second-by-second beats and a locked character, era and continuity.

video-prompt, vlog, home-video, timed-beats, character-consistency, reference-image, handheld, multi-shot, photorealistic, japan, woman, fitness, guardrails, seedance, candid, long-form, vintage, tracking-shot

Reviews

Loading reviews…

Discussion

Loading comments…