~/talk

Custom UI Components in SwiftUI

Talkat App Builders 2020 · 2020-05-11..05-12· [swift, component-design]
slides:none on file

Builds a resizable four-bar signal-strength control that respects parent layout instead of hard-coded sizes: four bars with relative heights 12.5, 25, 37.5, 50 (scaled by the proposed frame), aspect ratio 16:9, and sliders used for prototyping width/height. Replaces a full-screen GeometryReader with a shape-based approach: implement Shape.path(in:) and use rect.divided(atDistance:from:) to slice each bar, add a relative-height Shape modifier (extension on Shape) and compute corner radius as a percentage so rounded corners scale correctly.

AI-written summary · about

  1. 0:00Introduction to custom components
  2. 3:13Understanding SwiftUI layout
  3. 9:16Making components responsive
  4. 11:43Avoiding GeometryReader
  5. 15:02Creating reusable shapes
  6. 17:13Adding rounded corners
  7. 18:18Implementing aspect ratio
  8. 19:42Handling spacing between bars
  9. 20:03Best practices summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.