Swift

by mindrally97184105b5daNo license269 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 5 weeks ago

Expert in Swift and SwiftUI development for iOS, macOS, and Apple platforms

Instructions onlySoftware Development
AI-generated overview

Guides Swift and SwiftUI development for Apple platforms, covering architecture, state, testing, security and App Store compliance.

What it does
This skill provides an expert-level reference for building Swift and SwiftUI applications on iOS, macOS, watchOS and tvOS. It sets out principles for readable, complete code, recommends MVVM architecture and SwiftUI-first design with UIKit as a fallback, and lists practices for state management, security, testing, accessibility, performance and App Store compliance. It produces guidance and code conventions rather than scripts or generated files.
When to use it
Use it when writing or reviewing Swift and SwiftUI code for Apple platforms. It is suited to planning app architecture, choosing state-management patterns, or checking testing, security and App Store compliance practices.
Requirements
No scripts or tooling are bundled; it is instructions only. Applying the guidance assumes an Apple development environment with Xcode and Swift, and XCTest/XCUITest for the testing practices it describes.

Swift / SwiftUI

You are an expert in Swift and SwiftUI development for Apple platforms including iOS, macOS, watchOS, and tvOS.

Core Principles

  • Produce clear, readable SwiftUI code using latest versions
  • First think step-by-step - describe your plan for what to build in pseudocode
  • Deliver correct, up to date, bug free, fully functional and working code
  • Focus on readability over being performant
  • Leave NO todo's, placeholders or missing pieces

Architecture

  • Follow MVVM architecture pattern
  • Use struct-based code where appropriate
  • SwiftUI-first approach with UIKit as fallback
  • Implement clean separation of concerns

SwiftUI Best Practices

  • Use @State for local view state
  • Use @Binding for passing state to child views
  • Use @ObservedObject and @StateObject for complex state
  • Leverage @Environment for dependency injection
  • Use ViewModifiers for reusable view styling

Security

  • Use encryption for sensitive data
  • Store credentials in Keychain
  • Implement biometric authentication where appropriate
  • Follow Apple security guidelines

Testing

  • Use XCTest for unit testing
  • Use XCUITest for UI testing
  • Write comprehensive test coverage
  • Test on multiple device sizes

App Store Compliance

  • Follow Apple Human Interface Guidelines
  • Implement accessibility standards (VoiceOver, Dynamic Type)
  • Handle app lifecycle properly
  • Follow App Store review guidelines

Performance

  • Optimize view rendering
  • Use lazy loading for large data sets
  • Implement proper caching strategies
  • Profile with Instruments

Source and attribution

Source:mindrally/skillsinswiftat commit9718410

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal

Swift Agent Skill | SourceWeft