Popularity
9.3
Stable
Activity
0.0
Stable
3,998
104
830

Code Quality Rank: L1
Programming language: Objective-C
License: NOASSERTION
Tags: UI     Switch    
Latest version: v1.5.6

HMSegmentedControl alternatives and similar libraries

Based on the "Switch" category.
Alternatively, view HMSegmentedControl alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of HMSegmentedControl or a related project?

Add another 'Switch' Library

README

HMSegmentedControl

Pod Version Carthage compatible Pod Platform Pod License

A highly customizable drop-in replacement for UISegmentedControl, used by more than 22,000 apps, including TikTok, PayPal, Imgur and Bleacher Report.

Features

  • ๐Ÿ“ธ Supports both text and images
  • โ†•๏ธ Multiple sizing and selection styles
  • ๐Ÿ“œ Horizontal scrolling for an infinite number of segments
  • โš™๏ธ Advanced title styling with text attributes for font, color, kerning, shadow, etc
  • ๐Ÿ–ฅ Compatible with both Swift and Objective-C
  • ๐Ÿ“ฑ Updated for Xcode 11, iOS 13 and Swift 5. Supports all the way back to iOS 7!

Installation

pod 'HMSegmentedControl'

Installation via Carthage is also supported..

Usage

The code below will create a segmented control with the default looks:

let segmentedControl = HMSegmentedControl(sectionTitles: [
    "Trending",
    "News",
    "Library"
])

segmentedControl.frame = CGRect(x: 0, y: 0, width: 100, height: 40)
segmentedControl.addTarget(self, action: #selector(segmentedControlChangedValue(segmentedControl:)), for: .valueChanged)
view.addSubview(segmentedControl)

Included is a demo project showing how to fully customize HMSegmentedControl.

Possible Styles

Apps Using HMSegmentedControl

If you are using HMSegmentedControl in your app or know of an app that uses it, please add it to this list.

Need Help?

If you need help with HMSegmentedControl, or with iOS/Swift development in general, check out swiftmentor.io

License

HMSegmentedControl is licensed under the terms of the MIT License. Please see the [LICENSE](LICENSE.md) file for full details.

If this code was helpful, I would love to hear from you.

@HeshamMegid
http://hesh.am


*Note that all licence references and agreements mentioned in the HMSegmentedControl README section above are relevant to that project's source code only.