Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ios-development

БесплатноБез исполняемых скриптовНе проверен

iOS, iPadOS, and tvOS development with Swift, SwiftUI, and UIKit. Use when building Apple platform apps, implementing iOS-specific features, or following…

travisjneumanот travisjneuman★ 115 звёзд на GitHub13 установок в других каталогах

Об этом скилле

iOS/iPadOS/tvOS Development

Comprehensive guide for building native Apple platform applications.

Platforms Covered

Platform Minimum Target Current
iOS iOS 15.0+ iOS 17+
iPadOS iPadOS 15.0+ iPadOS 17+
tvOS tvOS 15.0+ tvOS 17+
watchOS watchOS 8.0+ watchOS 10+

SwiftUI (Preferred for New Projects)

Basic Structure

import SwiftUI

@main
struct MyApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}

struct ContentView: View {
    @State private var count = 0

    var body: some View {
        VStack(spacing: 20) {
            Text("Count: \(count)")
                .font(.largeTitle)

            Button("Increment") {
                count += 1
            }
            .buttonStyle(.borderedProminent)
        }
        .padding()
    }
}

State Management

// Local state
@State private var text = ""

// Binding (child components)
@Binding var isPresented: Bool

// Observable object
@StateObject private var viewModel = MyViewModel()
@ObservedObject var viewModel: MyViewModel

// Environment
@Environment(\.dismiss) private var dismiss
@Environment(\.colorScheme) private var colorScheme
@EnvironmentObject var appState: AppState

// App Storage (UserDefaults)
@AppStorage("username") private var username = ""

Modern Concurrency

// Async/await
func fetchData() async throws -> [Item] {
    let url = URL(string: "https://api.example.com/items")!
    let (data, _) = try await URLSession.shared.data(from: url)
    return try JSONDecoder().decode([Item].self, from: data)
}

// In View
.task {
    do {
        items = try await fetchData()
    } catch {
        errorMessage = error.localizedDescription
    }
}

// Main actor for UI updates
@MainActor
class ViewModel: ObservableObject {
    @Published var items: [Item] = []

    func load() async {
        items = try? await fetchData()
    }
}

Navigation (iOS 16+)

// NavigationStack with typed destinations
struct ContentView: View {
    @State private var path = NavigationPath()

    var body: some View {
        NavigationStack(path: $path) {
            List(items) { item in
                NavigationLink(value: item) {
                    Text(item.name)
                }
            }
            .navigationDestination(for: Item.self) { item in
                DetailView(item: item)
            }
        }
    }
}

Lists and Grids

// Modern List
List {
    ForEach(items) { item in
        ItemRow(item: item)
    }
    .onDelete(perform: delete)
    .onMove(perform: move)
}
.listStyle(.insetGrouped)
.searchable(text: $searchText)
.refreshable {
    await refresh()
}

// LazyVGrid
LazyVGrid(columns: [
    GridItem(.adaptive(minimum: 150))
]) {
    ForEach(items) { item in
        ItemCard(item: item)
    }
}

Reference files

Detailed material is in separate files so this overview stays short. Read only the file whose topic matches the task; each one is self-contained. Paths are relative to the folder that holds this SKILL.md (in the full toolkit install, ~/.claude/skills/ios-development/).

Topic File Covers
UIKit (Legacy/Complex UI) references/uikit-legacy-complex-ui.md View Controller Lifecycle; Auto Layout
Data Persistence references/data-persistence.md Core Data; SwiftData (iOS 17+); Keychain
Networking references/networking.md URLSession
Apple Human Interface Guidelines references/apple-human-interface-guidelines.md iOS Design Principles; Key Metrics; Safe Areas
Platform-Specific references/platform-specific.md iPadOS Specifics; tvOS Specifics
App Store Requirements references/app-store-requirements.md Required Assets; Privacy; App Transport Security
Testing references/testing.md Unit Tests; UI Tests
Project Structure references/project-structure.md 24 lines
Best Practices references/best-practices.md DO:; DON'T:
@Observable Macro (iOS 17+, Replacing ObservableObject) references/observable-macro-ios-17-replacing-observableobject.md Migration from ObservableObject
SwiftUI 6 New Views and Modifiers references/swiftui-6-new-views-and-modifiers.md 44 lines
Swift 6 Concurrency references/swift-6-concurrency.md 46 lines
Minimum Target: iOS 17+ [`references/minimum-targe
Полный SKILL.md на GitHub

Установить ios-development в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/app-store-requirements.mdreferences/apple-human-interface-guidelines.mdreferences/best-practices.mdreferences/data-persistence.mdreferences/minimum-target-ios-17.mdreferences/networking.mdreferences/observable-macro-ios-17-replacing-observableobject.mdreferences/platform-specific.mdreferences/project-structure.mdreferences/swift-6-concurrency.mdreferences/swiftui-6-new-views-and-modifiers.mdreferences/testing.mdreferences/uikit-legacy-complex-ui.mdreferences/visionos-and-spatial-computing.mdreferences/watchos-development.md

FAQ

Что делает скилл ios-development?

iOS, iPadOS, and tvOS development with Swift, SwiftUI, and UIKit. Use when building Apple platform apps, implementing iOS-specific features, or following Apple Human Interface Guidelines.

Как установить скилл ios-development?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ios-development запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ios-development с