Pinned Loading
-
-
-
Inspired by Nathan Gitter's tweet: h...
Inspired by Nathan Gitter's tweet: https://twitter.com/nathangitter/status/992842150500069376 1import UIKit
23extension UIView {
4func setCornerRadius(_ radius: CGFloat) {
5let roundPath = UIBezierPath(
-
CustomFont.swift
CustomFont.swift 1import UIKit
23extension UIFont {
4static func preferredFont(for style: UIFont.TextStyle, weight: UIFont.Weight, design: UIFontDescriptor.SystemDesign = .rounded) -> UIFont {
5let defaultFont = UIFont.preferredFont(forTextStyle: style)
-
Scale down views while pressed
Scale down views while pressed 1import UIKit
23extension UIView {
4func squishy() {
5let gesture = UILongPressGestureRecognizer(target: self, action: #selector(handleSquish))
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.