Skip to content

Update README with Swift example #13

@ndbabb

Description

@ndbabb

I was able to get this working in Swift by setting the window property in AppDelegate.swift as such:

import SmudgeKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
  var window: UIWindow? = SmudgyWindow(frame: UIScreen.mainScreen().bounds)
  //[...]
}

The README mentions some bug in the swift compiler. Works fine in Swift 2.2 it seems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions