Docs
Inputs

Interest ChipsNew

Wrapping glass chips for picking several things: each floods red as its check grows in, and a limit dims the rest and shakes refusals.

$npx swiftpieces add InterestChips
Free · MIT + Commons ClauseiOS 17.0+Liquid Glasschipstagsmulti-selectonboardingfilterhaptics
Type
InterestChips
Files
InterestChips.swift
Depends on
Nothing (Apple frameworks only)
Version
1.0.0

Colors and metrics for InterestChips. .standard is the house palette: the brand red on neutral glass.

Notes

  • For picking several things at once, such as interests in onboarding, dietary needs or topics. Pass strings, or any Hashable options with a label. Chips wrap to the width and grow with Dynamic Type.
  • Each chip sits on liquid glass. A picked chip floods red from its leading edge as a check grows in beside its label, on the morph spring. Tapping it again lets it go.
  • limit caps the picks. A counter keeps score in the header, the unpicked chips dim once it is reached, and tapping one of them shakes it with a firm haptic instead of picking it. Deselect one to free a place.
  • The gap around each chip counts as part of it, so taps between chips still land.
  • One selection haptic fires per change. VoiceOver reads the title as the group's label and each chip as a button, selected when picked, and dimmed chips as Limit reached. .disabled(true) dims the chips.
  • Under Reduce Motion the flood and check settle with no overshoot. Reduce Transparency draws the chips as solid shapes.

Usage

InterestChipsExample()

Install

Pick one. Run it from the folder that contains your .xcodeproj and the files land inside your app.

Terminal

$npx swiftpieces add InterestChips

Or ask your coding agent · Claude Code, Cursor or Xcode, once the MCP server is connected

>Add the SwiftPieces "Interest Chips" piece to my app

Or copy the source above into your app.

New to SwiftUI?If you know React, CSS or Tailwind, SwiftUI is easier to pick up than it looks.Try real app patterns first

Building a whole app? See SwiftPieces Pro →

All inputs and forms →

Build it yourself: SwiftUI haptics guide

On this page

SwiftPiecesPro

Build the whole app with one library.

Production-ready screens, whole flows, complete app templates, a Build Kit your agent follows and Pro remixing.

54 screens · 46 patterns · 48 flows · 12 templates · 31 Build Kit skills

Explore Pro