What problem does it solve?
Helps Apple platform developers build and customize interactive 3D surface visualizations in SwiftUI using the Charts framework, removing guesswork around plotting mathematical functions, rendering data-driven surfaces, styling surfaces by height or normals, and controlling camera pose and projection.
Core Features & Use Cases
- Math-driven surfaces: Plot z = f(x, y) functions as continuous 3D surfaces for scientific and demo visualizations.
- Data-driven surfaces: Render surfaces from arrays of sampled points for terrain, heatmaps, or measured datasets.
- Interactive pose control: Bind a Chart3D pose to state for drag-to-rotate interactions or use fixed poses for static views.
- Styling and rendering: Apply solid colors, gradients, height-based coloring, normal-based shading, and roughness to tune appearance.
- Camera projection modes: Choose perspective for visual appeal or orthographic for accurate measurements.
- Use case example: Create a terrain viewer with height-based coloring, interactive rotation, and perspective projection to explore elevation data.
Quick Start
Render an interactive 3D surface in SwiftUI that uses height-based coloring, a draggable camera pose, and perspective projection.