
Swift Charts
This is a comprehensive reference for Swift Charts that covers everything from basic bar and line charts to advanced features like vectorized plots for large datasets and iOS 17+ scrollable charts. You'll want this when implementing any data visualization in SwiftUI, whether you're building a simple pie chart or something specialized like a heat map or Gantt chart. The workflow section walks you through the typical pattern of defining data, choosing mark types, and encoding visual channels, while the code samples show real implementations for stacked bars, range areas, and donut charts with inner radius ratios. It includes the kind of details you actually need, like how to layer multiple AxisMarks for different grid and label intervals, and covers selection binding for interactive charts. The review checklist at the end is handy for auditing existing chart code.
- skills.sh installs
- 4.2K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill swift-charts --agent claude-codeInstalls into .claude/skills of the current project.
Files
Swift Charts
Build data visualizations with Swift Charts targeting iOS 26+. Compose marks
inside Chart or Chart3D, configure axes and scales with view modifiers, and
use vectorized plots or 3D plots when the data calls for them.
See references/charts-patterns.md for extended patterns, 3D charts, accessibility, and theming guidance.
Contents
- Workflow
- Chart Container
- Mark Types
- Axis Customization
- Scale Configuration
- Foreground Style and Encoding
- Selection (iOS 17+)
- Scrollable Charts (iOS 17+)
- Annotations
- Legend
- Vectorized Plots (iOS 18+)
- 3D Charts (iOS 26+)
- Common Mistakes
- Review Checklist
- References
Workflow
1. Build a new chart
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Git & Pull Requests, Code Review & Quality, Mobile Development
- First seen
- Apr 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Swift Language4.1K
- App Intents4.1K
- Authentication4.1K
- Background Processing4.1K
- Healthkit4K
- Vision Framework4K
- Coreml3.9K
- Core Bluetooth3.9K
- Core Motion3.8K
- Natural Language3.8K
- Speech Recognition3.8K
- Device Integrity3.8K
- Contacts Framework3.8K
- Alarmkit3.8K
- Core Nfc3.8K
- Swift Codable3.8K
- Tipkit3.8K
- App Clips3.8K
- Permissionkit3.7K
- Energykit3.7K
- Shareplay Activities3.7K
- Weatherkit3.6K
- Activitykit3.5K
- Cloudkit3.5K