Skip to content

Instantly share code, notes, and snippets.

@mazen-kasser
mazen-kasser / StepperControl.swift
Last active June 30, 2022 09:41
Stepper component based on `UIStepper` control with having a label as the divider image.
import UIKit
/// Stepper component based on `UIStepper` control.
///
/// - Parameters:
/// - onClick, closure returns the final `value`
/// - isContinuous, default = YES. value change events are sent any time the value changes during interaction.
/// - autorepeat, default = YES. press & hold repeatedly alters value.
/// - wraps, default = NO. value wraps from min <-> max.
/// - value, default = 0. sends UIControlEventValueChanged. clamped to min/max
@mazen-kasser
mazen-kasser / post-checkout.sh
Created December 11, 2019 21:09 — forked from kylef/post-checkout.sh
Git post-checkout hook to install CocoaPods
#!/bin/bash
#
### CocoaPods git-checkout hook
#
# This is a hook which you can install, it will automatically
# run `pod install` when you do a git pull/clone/checkout.
#
# The hook can be used to make CocoaPods usable with Xcode CI.
#
## Installation