Skip to content

Instantly share code, notes, and snippets.

View hilalbaig's full-sized avatar
🎯
Focusing

Baig hilalbaig

🎯
Focusing
View GitHub Profile
@hilalbaig
hilalbaig / UINavigationBar+Height.swift
Last active November 13, 2020 19:24 — forked from siberianisaev/UINavigationBar+Height.swift
Change height of UINavigationBar - Swift 3
import Foundation
import UIKit
private var AssociatedObjectHandle: UInt8 = 0
extension UINavigationBar {
var height: CGFloat {
get {
if let h = objc_getAssociatedObject(self, &AssociatedObjectHandle) as? CGFloat {
@austinzheng
austinzheng / CustomTextInputView.swift
Last active January 20, 2022 15:14
Simple UIKeyInput example
import UIKit
/// A very simple example view that can accept keyboard input and add or delete text from an enclosed label.
class CustomTextInputView : UIControl, UIKeyInput {
var label : UILabel?
override func canBecomeFirstResponder() -> Bool {
return true
}