# gmarm/BetterSegmentedControl

An easy to use, customizable replacement for UISegmentedControl & UISwitch.

Repository: https://github.com/gmarm/BetterSegmentedControl
Canonical: https://ross.abutalabs.com/products/bettersegmentedcontrol
Language: Swift
License: MIT
License Family: permissive
Topics: swift, swift-3, ios, uiswitch, switch, uisegmentedcontrol, segmentedcontrol, carthage, cocoapods, ui, ui-element, cocoa, swift-4, swift4, swift4-1, swift5, swift5-1, swift-package-manager
Last push: 2023-04-11T22:16:40+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3804, "days_push": 1240, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2405, forks 281 (observed 2026-08-28T04:06:44.047109+00:00)

## What it is
A customizable Swift UI component for iOS that replaces UISegmentedControl and UISwitch. It supports text or icon segments, extensive styling options, Interface Builder design, and accessibility.

## Use cases
- replace uisegmentedcontrol with a customizable segmented control
- build an ios toggle switch with custom colors and animations
- add icon-based segmented tabs to an ios app
- design a segmented control in interface builder
- support right-to-left languages in segmented controls

## When to choose
- you need a highly customizable segmented control or switch on iOS
- you want Interface Builder designability and accessibility out of the box
- you need text, icon, or custom segments in one component

## When to avoid
- you need a cross-platform (Android/web) control
- you only need the stock UIKit controls with minor tweaks
- you need a component actively adding new features

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components
- domain: mobile-development, frontend
- platform: -
- tags: uisegmentedcontrol, uiswitch, swift-ui-component, cocoapods, interface-builder, ios, swift, mobile

## Member repositories
- gmarm/BetterSegmentedControl (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:44.047109+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:34:08.416469+00:00, confidence not recorded.
  - readme: https://github.com/gmarm/BetterSegmentedControl (fetched 2026-08-28T04:06:44.047109+00:00, sha 8724194e5047)
- Data as of 2026-08-30T08:39:29.467469+00:00.
