Skip to content

BleepingSwift/swift-charts-basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftChartsBasics

Sample code demonstrating Learn how to create beautiful, interactive charts in SwiftUI using Apple's Swift Charts framework, from simple line charts to customized bar graphs..

This project accompanies the article: Getting Started with Swift Charts

Requirements

  • Xcode 26.2+
  • iOS 26.0+
  • macOS 26.0+
  • Swift 6.0

Getting Started

  1. Clone this repository
  2. Run xcodegen generate (requires XcodeGen)
  3. Open SwiftChartsBasics.xcodeproj
  4. Build and run

What's Included

  • App.swift: Source file
  • ContentView.swift: Source file
  • Models.swift: Source file
  • SalesChartView.swift: Source file
  • MultipleMarksView.swift: Source file
  • CombinedMarksView.swift: Source file
  • MultiSeriesChartView.swift: Source file
  • StyledChartView.swift: Source file
  • TimeSeriesChartView.swift: Source file
  • InteractiveChartView.swift: Source file
  • ChartWithReferenceLineView.swift: Source file
  • AccessibleChartView.swift: Source file

Learn More

Read the full article at BleepingSwift for detailed explanations and additional examples.

License

MIT License - see LICENSE for details.

About

Learn how to create beautiful, interactive charts in SwiftUI using Apple's Swift Charts framework, from simple line charts to customized bar graphs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages