Skip to content

Instantly share code, notes, and snippets.

@hishma
hishma / Button.swift
Created April 1, 2020 21:32
Hand rolled button, Heasley style.
import UIKit
class Button: UIControl {
var labelText: String? {
set {
label.text = newValue
}
get {
label.text
}
import UIKit
extension UIFont {
/// Returns an instance of the font associated with the text style, specified design, and scaled appropriately for the user's selected content size category.
/// - Parameters:
/// - style: The text style for which to return a font. See UIFont.TextStyle for recognized values.
/// - weight: The weight of the font, specified as a font weight constant. For a list of possible values, see "Font Weights” in UIFontDescriptor. Avoid passing an arbitrary floating-point number for weight, because a font might not include a variant for every weight.
/// - fontDesign: The new system font design.
/// - Returns: A font object of the specified style, weight, and design.
@hishma
hishma / gist:1a7e94063d37e6fec1c80ccd7f960216
Created February 15, 2021 22:35
LocationDegreesFormatter.swift
import CoreLocation
class LocationDegreesFormatter: Formatter {
enum Direction {
case none
case latitude
case longitude
}
@hishma
hishma / WWDC.md
Last active March 20, 2025 08:42
WWDC 2015-2018 Session Videos

WWDC 2015-2018 Session Videos

For some reason some older WWDC session videos have been disappearing from Fruit Co's the developer site. Luckily Harish posted this this gist of URL's and titles. So I converted that JSON to this markdown doc.

Enjoy!

2018

  • 102 – Platforms State of the Union – 2018 Platforms State of the Union
  • 103 – Apple Design Awards – Join us for an unforgettable award ceremony celebrating developers and their outstanding work. The 2018 Apple Design Awards recognize state of the art iOS, macOS, watchOS, and tvOS apps that reflect excellence in design and innovation.