Skip to content

Instantly share code, notes, and snippets.

View JorgeSainz's full-sized avatar

Jorge Sainz Sueiro JorgeSainz

View GitHub Profile
@kevinmlong
kevinmlong / UIViewController-UnocculdedTextField-Full.swift
Last active December 15, 2019 18:38
Unoccluded UITextField Extension (Full Source)
import UIKit
import ObjectiveC
struct AssociatedKeys {
static var activeTextField: UInt8 = 0
static var keyboardHeight: UInt8 = 1
}
extension UIViewController : UITextFieldDelegate {
@bittz
bittz / QuadPageControl.swift
Last active February 12, 2023 16:42
UIPageControl with square dots having custom size (hack).
import UIKit
class QuadPageControl: UIPageControl {
override func layoutSubviews() {
super.layoutSubviews()
guard !subviews.isEmpty else { return }
let spacing: CGFloat = 3