Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block yaronalk

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
yaronalk / UIView+Wiggle.h
Last active May 19, 2019
Make any UIView (e.g., UICollectionViewCell) wiggle like iOS home screen apps before being deleted
View UIView+Wiggle.h
// UIView+Wiggle.h
@interface UIView (Wiggle)
- (void)wiggle;
- (void)endWiggling;
- (BOOL)isWiggling;
maciekish /
Created Aug 10, 2016
Reset Xcode. Clean, clear module cache, Derived Data and Xcode Caches. You can thank me later.
killall Xcode
xcrun -k
xcodebuild -alltargets clean
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/*
open /Applications/
mayoff / Main.storyboard
Created Sep 10, 2014
Storyboard with autolayout constraints for aspect-fit of a subview in a container view, for
View Main.storyboard
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="" version="3.0" toolsVersion="6245" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
<plugIn identifier="" version="6238"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<!--View Controller-->
<scene sceneID="ufC-wZ-h7g">
mattt /
Last active Aug 14, 2019
A list of methods and properties conforming to `UIAppearance` as of iOS 12 Beta 3

Generate the list yourself:

$ cd /Applications/*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./*     | \
  sed 's/NS_AVAILABLE_IOS(.*)//g'     | \
  sed 's/NS_DEPRECATED_IOS(.*)//g'    | \
  sed 's/API_AVAILABLE(.*)//g'        | \
  sed 's/API_UNAVAILABLE(.*)//g'      | \
  sed 's/UI_APPEARANCE_SELECTOR//g'   | \
mwaterfall / gist:953664
Created May 3, 2011
NSDate from Internet Date & Time String
View gist:953664
// NSDate+InternetDateTime.h
// MWFeedParser
// Created by Michael Waterfall on 07/10/2010.
// Copyright 2010 Michael Waterfall. All rights reserved.
#import <Foundation/Foundation.h>
You can’t perform that action at this time.