Profile

Cover photo
Warren Burton
Lives in London
78,701 views
AboutPostsPhotosVideos

Stream

Warren Burton

Shared publicly  - 
 
Locally scoped things for cleaner code in Swift
Clean Code methodology says that your code should be its own documentation and what Swift adds to the system is function scoped anything.

You can add a class, enum, protocol or struct that applies only to that function.  So here in DevSketch I'm working o...
1
Add a comment...

Warren Burton

Shared publicly  - 
 
Freezing in Trout 1.6.0
There is a freezing bug in 1.6.0 which affecting some people.  I have a fix in the App Store review pipeline and hopefully this fix should be out before  1st October
1
Add a comment...

Warren Burton

Shared publicly  - 
 
Devsketch 1.4.0 is out
Whats new & changed. - Improved renderer for large models. - New sorting options - Swift 1.2 syntax and types. - Documentation can be visible on the map as notes - Better recognition of block types - Edit arguments from within the method creator - Less glar...
1
Add a comment...

Warren Burton

Shared publicly  - 
 
UIStateRestoring in Swift
When your customers open your app you may want them to feel like they never left it even when the system has long since ejected you. This is where UIStateRestoring comes into play.  First thing to do is setup Restoration ID's for your view controllers. You ...
1
Add a comment...

Warren Burton

Shared publicly  - 
 
Lightweight view controllers are a lot cleaner in Swift thanks to functions being full class citizens. #swift
1
Add a comment...

Warren Burton

Shared publicly  - 
 
Trout 1.6.1 now available
Hi all Trout 1.6.1 is now available in the App Store. This fixes any freezing bugs you may have experienced. Thanks for your patience.
1
Dennis Van Dusen's profile photo
 
Love your work. Would you be interested in working on a super project? contact john @ locipro . com - and see the patent behind the project http://google.com/patents/US20140075004 
Add a comment...

Warren Burton

Shared publicly  - 
 
Time with Trout
I also spent a lot of time with Trout at the WWDC Some basic bifurcated / left / right arrangements Reworking the drawing and scrolling system to be less clacky. Very exited about the force touch API in 10.11
1
Omar Hashani's profile photoWarren Burton's profile photo
2 comments
 
Hi Omar 

I have an update out very soon which will fix the freezing. There was a bug which was affecting some customers and that has been corrected. The fix is in the App Store review system and im hoping it will be out in the next few days.

Thanks very much for purchasing Trout and your patience with this issue.
Add a comment...

Warren Burton

Shared publicly  - 
 
A tutorial on how to implement UIStateRestoring in Swift
1
Add a comment...

Warren Burton

Shared publicly  - 
 
Lighter view controllers in Swift
A classic problem in Objective-C is the one of avoiding MVC . Massive View Controller that is.  Code gets copy-pasta'd into multiple view controllers and all looks a bit like this. objc.io does a great job of explaining how to slim down your view controller...
1
Add a comment...

Warren Burton

Shared publicly  - 
 
I have been working recently on DevSketch 1.3 with all the Swift things which means upgrading the Core Data model and adding support for Enums and Structs. Extensions are basically Obj-C categories so that doesn't involve extra work.

Problem is it turns out Structs aren't so different to Classes in Swift land and i'm left with a structure issue.

Currently Protocols and Classes descend from Object as they can both carry messages(functions) and properties(vars) and my initial instinct was to do the same thing for Structs. Now I'm wondering whether or not to smoosh Structs as a simple Boolean property on Class or just subclass off Class instead of Object.

Semantically I would be saying "struct is-a class" . I know this is incorrect at an official level but it does make sense from a development level.

Struct and Classes are basically equal opportunity employers at a syntax level. At runtime they are different but that's not where DevSketch lives and it would make the relationship management a lot easier. It would also give the opportunity to flip between struct and class.

Got a Foo that you have set up as a Struct but now it's getting too heavy. Just give a nudge and now it's a class.

So am I backing myself into a big hole ? Such is the peril of Core Data as a storage medium. Small decisions become big thumping PITA later on.

Think I'll go and look at kittens on the Internet instead.

#swiftlang #coredata
1
Add a comment...
Story
Introduction
I develop a Mind Mapping application for OS X and iPad 

Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
London
Previously
Auckland
Links
Contributor to
Work
Occupation
Test Engineer, Cocoa Programmer
Basic Information
Gender
Male