All Projects → MQZHot → ZSegmentedControl

MQZHot / ZSegmentedControl

Licence: MIT License
Customizable segmented control, a UISwitch-like segmented control and Segmented pager written in Swift

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to ZSegmentedControl

Bettersegmentedcontrol
An easy to use, customizable replacement for UISegmentedControl & UISwitch.
Stars: ✭ 1,782 (+7028%)
Mutual labels:  switch, segmentedcontrol
Jxsegmentedview
A powerful and easy to use segmented view (segmentedcontrol, pagingview, pagerview, pagecontrol, categoryview) (腾讯新闻、今日头条、QQ音乐、网易云音乐、京东、爱奇艺、腾讯视频、淘宝、天猫、简书、微博等所有主流APP分类切换滚动视图)
Stars: ✭ 1,905 (+7520%)
Mutual labels:  switch, segmentedcontrol
RESegmentedControl
Customizable segmented control with style presets...
Stars: ✭ 76 (+204%)
Mutual labels:  switch, segmentedcontrol
UserDeviceTracker
快速定位一个IP或MAC在你的网络中的位置,是网络工程师提高工作效率的利器,也可以为CMDB提供基础网络数据。
Stars: ✭ 36 (+44%)
Mutual labels:  switch
SwiTAS
A usable toolkit for creating Nintendo Switch TASes with homebrew
Stars: ✭ 54 (+116%)
Mutual labels:  switch
RippleSwitch
Custom Android Switch widget
Stars: ✭ 16 (-36%)
Mutual labels:  switch
C64-Keyboard-Controlled-Kernal-Switch
No description or website provided.
Stars: ✭ 23 (-8%)
Mutual labels:  switch
react-native-multi-toggle-switch
MultiToggle Switch for React-Native
Stars: ✭ 17 (-32%)
Mutual labels:  switch
http-connection-lifecycle
Complete and detailed explanation of HTTP connection lifecycle
Stars: ✭ 43 (+72%)
Mutual labels:  switch
aos-switch-ansible-collection
Ansible collection for AOS-Switch switches
Stars: ✭ 29 (+16%)
Mutual labels:  switch
PuiSegmentedControl
PuiSegmentedControl is a customizable for segmented control.
Stars: ✭ 19 (-24%)
Mutual labels:  segmentedcontrol
OctopathTraveler
Switch OctopathTraveler SaveDate Editor
Stars: ✭ 32 (+28%)
Mutual labels:  switch
SwitchXBOXController
Turn your Nintendo Switch into an XBOX360 controller to play on your Windows computer
Stars: ✭ 46 (+84%)
Mutual labels:  switch
OnlySwitch
⚙️ All-in-One menu bar app, hide 💻MacBook Pro's notch, dark mode, AirPods, Shortcuts
Stars: ✭ 1,288 (+5052%)
Mutual labels:  switch
networking-icons
Repo containing various networking icons including routers, switches, servers, firewalls, load balancers and more. Icons are provided in png and svg formats.
Stars: ✭ 61 (+144%)
Mutual labels:  switch
Homebrew-Guide
Guide for getting CFW setup on your Nintendo Switch (And Wii U)
Stars: ✭ 104 (+316%)
Mutual labels:  switch
MGS.Electronics
Unity plugin for make button switch, knob switch and rocker element in scene.
Stars: ✭ 12 (-52%)
Mutual labels:  switch
eBookReaderNX
A Nintendo Switch eBook Reader
Stars: ✭ 15 (-40%)
Mutual labels:  switch
switch-ssh-go
A packaged SSH library for switches (huawei,h3c,cisco)
Stars: ✭ 53 (+112%)
Mutual labels:  switch
homebridge-switcheroo
Simple on/off or multiswitch radio buttons for http reqs. Useful for lights, A/V systems, home automation, whatever
Stars: ✭ 38 (+52%)
Mutual labels:  switch

ZSegmentedControl

Customizable segmented control, a UISwitch-like segmented control and Segmented pager written in Swift

image

How To Use

/// default `false`. if `true`, bounces past edge of content and back again
var bounces: Bool = false
/// selected index, default `0`
var selectedIndex: Int = 0
/// selectedScale, default `1.0`
var selectedScale: CGFloat = 1.0
/// textColor
var textColor: UIColor = UIColor.gray
/// selected textColor
var textSelectedColor: UIColor = UIColor.blue
/// textFont
var textFont: UIFont = UIFont.systemFont(ofSize: 15)

set image / text

/// only text
///
/// - Parameters:
///   - titles: text group
///   - style: The width style of the text is an enumeration, fixed width or adaptive
func setTitles(_ titles: [String], style: WidthStyle)

/// only image
///
/// - Parameters:
///   - images: image group
///   - selectedImages: selected image group, Ideally the same number of images, if not, the selected will be the item in images
///   - fixedWidth: The width is fixed
func setImages(_ images: [UIImage], selectedImages: [UIImage?]? = nil, fixedWidth: CGFloat)

/// both text image
///
/// - Parameters:
///   - titles: title group
///   - images: image group
///   - selectedImages: selected image group
///   - style: image potision
///   - fixedWidth: The width is fixed
func setHybridResource(_ titles: [String?], images: [UIImage?], selectedImages: [UIImage?]? = nil, style: HybridStyle = .normalWithSpace(0), fixedWidth: CGFloat)

setup cover

/// setup cover
///
/// - Parameters:
///   - color: color backgroundColor
///   - upDowmSpace: the distance of cover's up/down from item's up/down
///   - cornerRadius: radius
func setCover(color: UIColor, upDowmSpace: CGFloat = 0, cornerRadius: CGFloat = 0)

setup slider view

/// set slider
///
/// - Parameters:
///   - backgroundColor: slider backgroundColor
///   - position: Deciding on the slider position up or down, an enumeration
///   - widthStyle: The width of the slider is an enumeration, fixed width or adaptive
func setSilder(backgroundColor: UIColor,position: SliderPositionStyle, widthStyle: WidthStyle)

if you use segmented pager-like, use this method in scrollViewDelegate

/// use in contentScrollView `scrollViewDidScroll`
func contentScrollViewDidScroll(_ scrollView: UIScrollView)
/// use in contentScroll `scrollViewWillBeginDragging`
func contentScrollViewWillBeginDragging()

Contact

LICENSE

ZSegmentedControl is released under the MIT license. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].