Skip to content

omaralbeik/WeekdaysSegmentedControl

Repository files navigation

Platforms Cocoapods Swift Xcode MIT

Requirements

  • iOS 9.0+
  • Xcode 9.0+
  • Swift 4.0+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate WeekdaysSegmentedControl into your Xcode project using CocoaPods, specify it in your Podfile:

platform :ios, '9.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'WeekdaysSegmentedControl'
end

Then, run the following command:

$ pod install

Manually

Drag the WeekdaysSegmentedControl.swift file into your project, and you're all set!

Usage

  • Add WeekdaysSegmentedControl via Storyboard or in code
  • Conform to the WeekdaysSegmentedControlDelegate protocol for selecting and deselecting events.
  • Refer to the example project for help.

Customizing the control

Found an Issue?

If you find a bug in the source code, you can help me by submitting an issue. Even better you can submit a Pull Request with a fix :)

License

WeekdaysSegmentedControl is released under the MIT License.