A list of presenters at the Brooklyn Swift Developers Meetup with links to videos, slides and source code: http://www.meetup.com/Brooklyn-Swift-Developers
Taiki Suzuki - Flux & MVVM (Video)
Harlan Kellaway - Should Code Always be DRY? (Video)
addmedia | |
addphoto | |
addvideo | |
appinfo | |
boot | |
bootstatus | |
clone | |
create | |
darwinup | |
delete |
extension UIView { | |
@objc func exerciseAmbiguityInLayoutRepeatedly() { | |
if self.hasAmbiguousLayout { | |
Timer.scheduledTimer(timeInterval: 0.5, | |
target: self, | |
selector: #selector(UIView.exerciseAmbiguityInLayout), | |
userInfo: nil, | |
repeats: true) | |
} | |
} |
final class TintMyStatusBar { | |
static func to(_ colour: UIColor) { | |
let sbw = UIApplication.shared.value(forKey: "statusBarWindow") as! UIWindow | |
for statusbar in sbw.subviews { | |
for bgfg in statusbar.subviews { | |
for itemView in bgfg.subviews { | |
let image = itemView.layer.contents as! CGImage | |
itemView.layer.contents = self.tint(image: image, toColour: colour) | |
} |
var json : Dictionary<String, AnyObject> = ["first_name" : "Josh", "last_name" : "Holtz", | |
"best_friend" : ["first_name" : "Bandit", "last_name" : "The Cat"], | |
"friends" : [ ["first_name" : "Red Ranger"], ["first_name" : "Green Ranger"] ], | |
"birthday" : "1989-03-01" | |
] | |
var jsons = [json] | |
/* | |
* OLD WAY (before protocol extensions) | |
*/ |
<?xml version="1.0" encoding="UTF-8"?> | |
<Bucket | |
type = "2" | |
version = "2.0"> | |
<Breakpoints> | |
<!-- All Exceptions --> | |
<BreakpointProxy | |
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint"> | |
<BreakpointContent |
// Get the file manager | |
let fileManager = NSFileManager.defaultManager() | |
// Get the app's available documents directories | |
// For other options usable in iOS besides .DocumentsDirectory see: | |
// http://stackoverflow.com/questions/7268299/path-directory-usable-in-ios | |
let directoryURLs = fileManager.URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask) as [NSURL] | |
// Cast to [NSURL] because it 'helpfully' gives back [AnyObject] | |
// iOS should only give you a single documents directory for your app |
A list of presenters at the Brooklyn Swift Developers Meetup with links to videos, slides and source code: http://www.meetup.com/Brooklyn-Swift-Developers
Taiki Suzuki - Flux & MVVM (Video)
Harlan Kellaway - Should Code Always be DRY? (Video)
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |