abstract class
UI::PlatformVisitor
- UI::PlatformVisitor
- Reference
- Object
Overview
Abstract visitor for platform-specific rendering of UI views.
Each concrete platform renderer (macOS/AppKit, iOS/UIKit, Android, Web/HTML) implements this interface. The visitor pattern decouples the view tree structure from rendering logic, allowing the same view hierarchy to be rendered natively on any target platform.
Example: class WebRenderer < UI::PlatformVisitor def visit(view : UI::Label) # emit element end # ... implement all visit methods end
Direct Known Subclasses
Defined in:
ui/platform_visitor.crInstance Method Summary
- #visit(view : Label)
- #visit(view : Button)
- #visit(view : VStack)
- #visit(view : HStack)
- #visit(view : ZStack)
- #visit(view : Image)
- #visit(view : TextField)
- #visit(view : ScrollView)
- #visit(view : Spacer)
- #visit(view : Toggle)
- #visit(view : Checkbox)
- #visit(view : RadioGroup)
- #visit(view : Slider)
- #visit(view : NavigationStack)
- #visit(view : NavigationLink)
- #visit(view : TabView)
- #visit(view : ProgressView)
- #visit(view : ActivityIndicator)
- #visit(view : Alert)
- #visit(view : Picker)
- #visit(view : IconButton)
- #visit(view : ListView)
- #visit(view : OutlineView)
- #visit(view : ColumnView)
- #visit(view : TokenField)
- #visit(view : ImageWell)
- #visit(view : Panel)
- #visit(view : Gauge)
- #visit(view : ActivityRing)
- #visit(view : ActivityRings)
- #visit(view : SecureField)
- #visit(view : Stepper)
- #visit(view : SegmentedControl)
- #visit(view : DatePicker)
- #visit(view : TimePicker)
- #visit(view : SearchField)
- #visit(view : TextArea)
- #visit(view : Grid)
- #visit(view : Form)
- #visit(view : NavigationSplitView)
- #visit(view : Toolbar)
- #visit(view : Sheet)
- #visit(view : Popover)
- #visit(view : ConfirmationDialog)
- #visit(view : Snackbar)
- #visit(view : Card)
- #visit(view : Surface)
- #visit(view : Divider)
- #visit(view : GlassBackground)
-
#visit(view : AsyncImage)
P2 Wave 3
- #visit(view : RichText)
- #visit(view : LinkButton)
- #visit(view : MenuButton)
- #visit(view : ToggleButton)
- #visit(view : TextEditor)
-
#visit(view : Circle)
P3 Stubs
- #visit(view : Rectangle)
- #visit(view : RoundedRectangle)
- #visit(view : Capsule)
- #visit(view : Canvas)
- #visit(view : PathView)
- #visit(view : MapView)
- #visit(view : ChartView)
- #visit(view : WebViewComponent)
- #visit(view : ColorPicker)
- #visit(view : VideoPlayer)
- #visit(view : Tooltip)
- #visit(view : ActivityView)
- #visit(view : DisclosureGroup)
- #visit(view : PageControl)
- #visit(view : ComboBox)
- #visit(view : RatingIndicator)
- #visit(view : ActionSheetWithWebFallback)
- #visit(view : ContextMenuWithWebFallback)
- #visit(view : PathControlWithWebFallback)
-
#visit(view : SwipeActionRow)
Phase 6.10 — SwipeActionRow.
Instance Method Detail
abstract
def visit(view : SwipeActionRow)
#
Phase 6.10 — SwipeActionRow. iOS renders SwiftUI .swipeActions; macOS + desktop-web render visible trailing buttons; mobile-web renders touch-swipe-to-reveal panel.