PinterestSegment alternatives and similar libraries
Based on the "Switch" category.
Alternatively, view PinterestSegment alternatives based on common mentions on social networks and blogs.
-
HMSegmentedControl
A highly customizable drop-in replacement for UISegmentedControl. -
RAMPaperSwitch
:octocat: ๐ RAMPaperSwitch is a Swift material design UI module which paints over the parent view when the switch is turned on. iOS library by @Ramotion -
BetterSegmentedControl
An easy to use, customizable replacement for UISegmentedControl & UISwitch. -
TwicketSegmentedControl
Custom UISegmentedControl replacement for iOS, written in Swift -
AIFlatSwitch
Nicely animated flat design switch alternative to UISwitch -
SJFluidSegmentedControl
A segmented control with custom appearance and interactive animations. Written in Swift 3.0. -
TKSwitcherCollection
An animation switch collection -
AKASegmentedControl
๐ซ Fully customizable Segmented Control for iOS -
LUNSegmentedControl
Customizable segmented control with interactive animation. -
JTMaterialSwitch
A Customizable Switch UI for iOS, Inspired from Google's Material Design -
MultiSelectSegmentedControl
UISegmentedControl remake that supports selecting multiple segments, vertical stacking, combining text and images. -
ViralSwitch
A UISwitch that infects its superview with its tint color. -
DynamicMaskSegmentSwitch
A segment switcher with dynamic text mask effect -
AnimatedSwitch
UISwitch which paints over the parent view with the color in Swift. -
Switcher
Swift - Custom UISwitcher with animation when change status -
Switch
๐ An iOS switch control implemented in Swift with full Interface Builder support -
YUSegment
A customizable Segmented Control for iOS. Supports text and image.
WorkOS - The modern identity platform for B2B SaaS
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of PinterestSegment or a related project?
README
PinterestSegment
A Pinterest-like segment control with masking animation.
[](Example/demo.gif)
Requirements
- iOS 8.0+
- Xcode 9.0
- Swift 4.0
Installation
CocoaPods
You can use CocoaPods to install PinterestSegment
by adding it to your Podfile
:
platform :ios, '8.0'
use_frameworks!
pod 'PinterestSegment'
To get the full benefits import PinterestSegment
wherever you import UIKit
import UIKit
import PinterestSegment
Carthage
Create a Cartfile
that lists the framework and run carthage update
. Follow the instructions to add $(SRCROOT)/Carthage/Build/iOS/PinterestSegment.framework
to an iOS project.
github "tbxark/PinterestSegment"
Manually
- Download and drop
PinterestSegment.swift
in your project. - Congratulations!
Usage example
let style = PinterestSegmentStyle()
style.indicatorColor = UIColor(white: 0.95, alpha: 1)
style.titleMargin: CGFloat = 15
style.titlePendingHorizontal: CGFloat = 14
style.titlePendingVertical: CGFloat = 14
style.titleFont = UIFont.boldSystemFont(ofSize: 14)
style.normalTitleColor = UIColor.lightGray
style.selectedTitleColor = UIColor.darkGray
let segment = PinterestSegment(frame: CGRect(x: 20, y: 200, width: w - 40, height: 40), style: style, titles: ["Everything", "Geek", "Humor", "Art", "Food", "Home", "DIY", "Wemoent' Style", "Man's Style", "Beauty", "Travel"])
segment.valueChange = { index in
// Do something here
}
You can also add icon for each title, Just like the blow demo gif
[](Example/demo2.gif)
@IBOutlet weak var ibSegment: PinterestSegment!
var titles = [PinterestSegment.TitleElement]()
for i in 1...7 {
guard let image = UIImage(named: "icon_\(i)"),
let selectedImage = image.maskWithColor(color: ibSegment.style.selectedTitleColor),
let normalImage = image.maskWithColor(color: ibSegment.style.normalTitleColor) else { continue }
titles.append(PinterestSegment.TitleElement(title: "Face-\(i)", selectedImage: selectedImage, normalImage: normalImage))
}
ibSegment.setRichTextTitles(titles)
Article
ย ย Fix automaticallyAdjustsScrollViewInsets bug in PinterestSegment https://tbxark.com/2016/12/08/2016-12-08-Swift-Pinterst/
Release History
1.2.0 support swift 4.0
1.0.1 fix bug
1.0.0 first commit
Contribute
We would love for you to contribute to PinterestSegment, check the LICENSE
file for more info.
Meta
TBXark โ @tbxark โ [email protected]
Distributed under the MIT license. See LICENSE
for more information.
*Note that all licence references and agreements mentioned in the PinterestSegment README section above
are relevant to that project's source code only.