Skip to content

Instantly share code, notes, and snippets.

@prabhKaur03
prabhKaur03 / ImageSwitch.swift
Last active April 6, 2022 13:31
UISwitch With Thumb Image
import UIKit
class ImageSwitch: UISwitch {
@IBInspectable var thumbImage: UIImage? {
didSet {
updateView()
}
}
@prabhKaur03
prabhKaur03 / OdometerReadingVC.swift
Last active March 31, 2022 05:14
Multi-component Picker View
import UIKit
extension CGFloat {
static var screenWidth: CGFloat {
return UIScreen.main.bounds.width
}
}