Skip to content

Instantly share code, notes, and snippets.

View tinoheth's full-sized avatar

Swiftfuchs tinoheth

  • Freelancer
  • Hannover
View GitHub Profile
@below
below / gist:e57cfb9323a5ef360e93
Created March 23, 2015 20:36
No longer working in Swift 1.2
// In Swift 1.1, I can use "let sideshow : Sideshow!". In Swift 1.2 it has to be a var
// Is this due to the change:
// "In an initializer, constant properties can now only assign a value once." ?
class Main {
var name : String
let sideshow : ImplicitlyUnwrappedOptional<Sideshow>
init (name : String, referenceName : String) {
self.name = name
self.sideshow = Sideshow(name: referenceName, ref: self)