Skip to content

Instantly share code, notes, and snippets.

Rich Ellis richellis

  • Portland, Oregon, USA
Block or report user

Report or block richellis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ExpandedHitButton.swift
/// Expands the touch target of the button to be at least as large as the minimum iOS guidelines.
class ExpandedHitButton: UIButton {
let minimumHitSize: CGSize
/// Creates an instance of `ExpandedHitButton`.
///
/// - Parameters:
/// - minimumHitSize: Size of the minimum hit rectangle, centered at the bounds midpoint. Default is 44x44
/// points (iOS Guidelines).
init(minimumHitSize: CGSize = CGSize(width: 44, height: 44)) {
@richellis
richellis / Iconizer.sh
Last active Jul 18, 2019 — forked from steverichey/Iconizer.sh
Create iOS application icons from one PDF file. Requires ImageMagick.
View Iconizer.sh
#!/bin/sh
#
# Iconizer shell script by Steve Richey (srichey@floatlearning.com)
# Modified by Rich Ellis (rich@richellis.net) based on contributions on Github from crishoj, giria
# https://gist.github.com/steverichey/8493f3bd31ae71a9c933/forks
#
# This is a simple tool to generate all necessary app icon sizes and the JSON file for an *EXISTING* Xcode project from one file.
# To use: specify the path to your vector graphic (PDF format) and the path to your Xcode folder containing Images.xcassets
# Example: sh iconizer.sh MyVectorGraphic.pdf MyXcodeProject
You can’t perform that action at this time.