Skip to content

Instantly share code, notes, and snippets.

@juliensagot
juliensagot / UIFont+smallCaps.swift
Last active April 9, 2022 18:43
Get UIFont with smallCaps feature (Swift 5.6, Xcode 13.3)
extension UIFont {
var withSmallCaps: UIFont {
let upperCaseFeature = [
UIFontDescriptor.FeatureKey.type : kUpperCaseType,
UIFontDescriptor.FeatureKey.selector : kUpperCaseSmallCapsSelector
]
let lowerCaseFeature = [
UIFontDescriptor.FeatureKey.type : kLowerCaseType,
UIFontDescriptor.FeatureKey.selector : kLowerCaseSmallCapsSelector
//
// UIBarButtonItem+Badge.swift
// PiGuardMobile
//
// Created by Stefano Vettor on 12/04/16.
// Copyright © 2016 Stefano Vettor. All rights reserved.
//
import UIKit
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active April 30, 2024 18:10
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S