Skip to content

Instantly share code, notes, and snippets.

import UIKit
import CoreMotion
class ViewController: UIViewController {
@IBOutlet weak var wallpaper: UIImageView!
@IBOutlet weak var welcomeLabel: UILabel!
var motionManager: CMMotionManager!

Keybase proof

I hereby claim:

  • I am xfer on github.
  • I am xfer (https://keybase.io/xfer) on keybase.
  • I have a public key whose fingerprint is 8CEB 5809 5C03 B964 7220 AF3F 49E2 141A D859 34A4

To claim this, I am signing this object:

extension UIView {
class func animateSequence(withDuration duration: TimeInterval, animations: ArraySlice<() -> Void>) {
if (animations.isEmpty) {
return
}
UIView.animate(withDuration: duration,
animations: animations.first!,
completion: {_ in animateSequence(withDuration: duration, animations: animations.dropFirst())})
}
package classes {
public class ApplicationSkin {
import com.adobe.csxs.core.CSXSInterface;
import com.adobe.csxs.types.AppSkinInfo;
public function ApplicationSkin() {}
// The current lightness of the app's background on a scale of 0-1
//
// Returns a Number
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>0 0 0 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>Monaco - 13.0</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>0 0 0 1</string>