Components Overview (iOS)
Voltra provides SwiftUI primitives with JSX bindings, allowing developers to create rich, interactive Live Activities using React/JSX syntax.
Getting Started
Section titled “Getting Started”Import iOS primitives from @use-voltra/ios and use the Voltra namespace:
import { Voltra } from '@use-voltra/ios'
const MyComponent = () => { // Use any component return ( <Voltra.VStack spacing={8}> <Voltra.Text>Hello Live Activity!</Voltra.Text> <Voltra.Button> <Voltra.Text>Tap me</Voltra.Text> </Voltra.Button> </Voltra.VStack> )}Component Categories
Section titled “Component Categories”Voltra organizes its components into categories:
Layout & Containers
Section titled “Layout & Containers”Components that arrange other elements or provide structural grouping. These include stacks (VStack, HStack, ZStack), spacers, and container components like GroupBox and GlassContainer.
See all layout & container components →
Visual Elements & Typography
Section titled “Visual Elements & Typography”Static or decorative elements used to display content. This category includes Text, Label, Image, Symbol, and visual effects like LinearGradient, Mask, and Divider.
See all visual elements & typography components →
Data Visualization & Status
Section titled “Data Visualization & Status”Components for displaying data and status information. This includes progress indicators (LinearProgressView, CircularProgressView), gauges, and timers for showing dynamic information in Live Activities.
See all data visualization & status components →
Interactive Controls & Navigation
Section titled “Interactive Controls & Navigation”User interface controls that respond to user interaction and navigation. This category includes Button and Toggle components for interactive Live Activities, plus Link for semantic URL navigation.