One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| protocol Initializable { | |
| init() | |
| } | |
| class A : Initializable { | |
| var content:String | |
| required init() { | |
| content = "TestContent" | |
| } |
| import UIKit | |
| /// A very simple example view that can accept keyboard input and add or delete text from an enclosed label. | |
| class CustomTextInputView : UIControl, UIKeyInput { | |
| var label : UILabel? | |
| override func canBecomeFirstResponder() -> Bool { | |
| return true | |
| } |
| #!/usr/bin/env swift | |
| import Foundation | |
| let args = Process.arguments | |
| if (args.count != 2) { | |
| print("usage: \(args[0]) <file>\n") | |
| exit(-1) | |
| } |
| #!/usr/bin/env swift | |
| import Foundation | |
| let args = Process.arguments | |
| if (args.count != 2) { | |
| print("usage: \(args[0].lastPathComponent) <file>\n") | |
| exit(-1) | |
| } |
| // | |
| // MTKCIImageView.swift | |
| // Fil | |
| // | |
| // Created by Muukii on 9/27/15. | |
| // Copyright © 2015 muukii. All rights reserved. | |
| // | |
| import Foundation | |
| import Metal |
| // iOS 9 allows you to animate between visual effects, which gives you the | |
| // ability to manipulate the blur radius. this can be useful for animating | |
| // a backdrop for a custom modal, and with a few tricks, can even be set | |
| // indirectly, allowing you to "scrub" between them back and forth with | |
| // a gesture, just like when you pull down Spotlight. | |
| // these are the two effects you want to transition between | |
| UIVisualEffect *startEffect = nil; // "nil" means no blur/tint/vibrancy (plain, fully-transparent view) | |
| UIVisualEffect *endEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; |
| #!/bin/sh | |
| ## | |
| # Install autoconf, automake and libtool smoothly on Mac OS X. | |
| # Newer versions of these libraries are available and may work better on OS X | |
| # | |
| # This script is originally from http://jsdelfino.blogspot.com.au/2012/08/autoconf-and-automake-on-mac-os-x.html | |
| # | |
| export build=~/devtools # or wherever you'd like to build |
| import Cocoa | |
| import XCPlayground | |
| import XCTest | |
| /* | |
| shadow.shadowColor = NSColor.blackColor().colorWithAlphaComponent(1.0) | |
| shadow.shadowOffset = NSMakeSize(0.1, 0.1) | |
| shadow.shadowBlurRadius = 15 | |
| */ | |
| extension NSShadow{ |
| source ~/.bash_profile | |
| cd ${SRCROOT} | |
| xcodebuild clean | |
| xcodebuild | xcpretty -r json-compilation-database | |
| oclint-json-compilation-database -- -report-type xcode |