Skip to content

Instantly share code, notes, and snippets.

View DavidLari's full-sized avatar

David Lari DavidLari

View GitHub Profile
@DavidLari
DavidLari / Joystick.View.swift
Last active July 30, 2018 17:08
A simple joystick view written in swift 4.x. Works like classic Atari joystick. Supports InterfaceBuilder.
/*
JoystickView.swift
Created by David Lari on 7/14/18.
MIT License
Copyright © 2018 David Lari.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
@DavidLari
DavidLari / gist:56c53005e3f6f0d861b65271600a9b12
Created September 20, 2016 18:46 — forked from steipete/ios-xcode-device-support.sh
Using Xcode 7.3.1 and iOS 10 devices
// The trick is to copy the DeviceSupport folder from the beta to the stable version.
cp -r /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A345\) /Applications/Xcode7.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
// Then restart Xcode. You might need to do that for every beta of iOS 10/Xcode 8.