Easy Complex UIControls
summary
A circular segmented control is implemented as an immutable state model that always renders a consistent value: handle angle, optional null segment, segment count, and per-segment colors including invalid/disabled segments. Selected index is derived from the angle (angle-derived selection), updates arrive as explicit deltas (angle, segments, tracking), and touch uses a custom swell gesture recognizer to produce angles. Rendering uses layer transforms and lightweight geometry so the view always displays the exact state the API exposes.
AI-written summary · about
