Dev Design Library

Liquid Switch

A toggle whose red fill pours across a glass track as the thumb crosses, swelling under the finger, with a drag that follows and flips.

Liquid Switch preview
Library
SwiftPieces
Framework
SwiftUI
Type
component
License
MIT + Commons Clause
Files
  • registry/swift/controls/LiquidSwitch.swift
  • registry/swift/controls/LiquidSwitch.mdx
Source
https://github.com/Saivion/SwiftPieces

Categories

More from SwiftPieces