$45.99

Mastering Charts Framework in SwiftUI & iOS 18

Buy this

Mastering Charts Framework in SwiftUI & iOS 18

$45.99

Mastering Charts Framework in SwiftUI & iOS 18 is the hands-on guide for developers ready to harness the full power of Apple’s Swift Charts. With hundreds of practical, fully-working examples, this book helps you go beyond basic rendering to build rich, interactive, data-driven visualizations — from simple bar charts to advanced animated, multi-dimensional, and user-interactive charts.

Whether you're building financial dashboards, fitness apps, health tools, or educational content, you'll gain the skills and tools to present data clearly and beautifully using SwiftUI’s native charting system.

What's inside

Fundamentals and Getting Started

  • Introduction to Swift Charts: Understand what Swift Charts offers and why it’s a game-changer for iOS developers.
  • Benefits of Swift Charts: Learn why this native framework beats third-party alternatives for most use cases.
  • Chart View Basics: Set up your first chart and explore how to use data with SwiftUI.
  • Exploring Marks: Get to know the building blocks of charts like BarMark, LineMark, AreaMark, and more.

Building Chart Types

  • Bar Charts: Create single and dynamic bar charts, control formatting, colors, and scales.
  • Annotations: Add labels, highlights, and callouts to make charts easier to read.
  • Stacked & Multi-Series Bars: Compare datasets side by side or stacked for clarity.
  • Custom Bar Placement: Control bar spacing and alignment for advanced layouts.

Beyond Bars – Line, Area, and More

  • Line Charts: Build smooth and responsive line charts.
  • Annotated and Multi-Series Line Charts: Layer multiple data sets and call out key values.
  • Area Charts: Fill in the space under lines to emphasize volume and trends.
  • Scatter & Point Charts: Use PointMark for scatter plots and highlight data clusters.
  • RectangleMark & RuleMark: Combine marks to show ranges, thresholds, or custom data overlays.

Donut and Pie Charts

  • SectorMark for Pie/Donut Charts: Visually break down percentages or categories.
  • Interactive Pie Charts: Tap into charts with chartAngleSelection to reveal context and totals.

Vectorized Plots (iOS 18 Exclusive)

  • Introduction to Vector Plots: Discover AreaPlot, BarPlot, LinePlot, and more.
  • Advanced Performance and Customization: Learn why vector plots scale better with large datasets.

Chart Configuration and Styling

  • ChartPlotStyle and Backgrounds: Customize chart backgrounds, overlays, and overall look.
  • Legends: Add intuitive, color-coded guides to your charts.
  • Axis Configuration: Fine-tune axis content, positioning, labels, and scale types.
  • Styling Inside Plot Area: Align data marks with plot-area visuals for clean design.
  • Symbol Shapes: Customize point shapes and symbols for clarity and branding.

Chart Interactions & Gestures

  • Gesture-Based Interaction: Use ChartProxy and ChartOverlay to tap into gesture control.
  • Interactive Line Charts: Track and highlight values dynamically with user input.
  • Empty States: Gracefully handle when there's no data to show.

Chart Animations and Motion

  • Animated Reveal Charts: Bring your charts to life as data flows in.
  • Layered Animations: Animate different chart elements with precise control.
  • Animated Pie Charts: Create smooth, touch-driven animations for pie slices.
Buy this
669 Pages
Size
24.8 MB
Length
52 sections