Craig Grummitt – Before I forget

Discoveries in Swift and iOS development.

Writing

The public notebook: Swift, iOS, Flutter, and a long trail of “I will definitely remember this.”

  • Lightning tour of closures in Swift

    Check out this video tutorial with a lightning tour of closures in Swift. It covers: Functions as data types Basic closure syntax Trailing closures   If you’re interested in more of these sorts…

    Keep reading

  • Overloading functions with default parameter values

    Overloading functions with default parameter values

    Here’s a Swifty conundrum for you! First a quick recap. Here’s a simple function with no parameters. Call it and “Hello World” will print to the console. Here’s another function with the…

    Keep reading

  • Lightning tour of functions in Swift

    Lightning tour of functions in Swift

    Check out this video tutorial with a lightning tour of functions in Swift. It covers: Parameter default values Optional function parameters Overloading a function If you’re interested in more of these sorts of…

    Keep reading

  • iOS Video Course is live!

    iOS Video Course is live!

    After many months of work, my video course iOS Development with Swift in Motion has recently launched over at Manning Publications. If you’re interested in taking on iOS Development, but aren’t sure…

    Keep reading

  • flatMap vs compactMap

    In Swift 4.1, the flatMap function was divided into two functions. One kept the same name: flatMap This method flattens a sequence. Let’s say we have a two-dimensional array: [sourcecode language=”javascript”] let…

    Keep reading

  • Xcode 10 keyboard shortcuts cheat sheet

    Xcode 10 keyboard shortcuts cheat sheet

    Getting adjusted to keyboard shortcuts takes some work, but they can boost your productivity significantly. I’ve put together a cheat sheet for a number of frequently used keyboard shortcuts in Xcode 10.…

    Keep reading

  • The Mysterious Case of the Status Bar

    The Mysterious Case of the Status Bar

    All I wanted was two things for my status bar: I wanted it to have white text by default as it was going to be on a dark background I wanted to…

    Keep reading

  • New Swift book available now, and free!

    New Swift book available now, and free!

    Thinking of learning more Swift, but not sure what book would be right for you? I’ve been busy compiling a book with Manning Publications, called “Exploring Swift“, which has sample chapters from…

    Keep reading

  • What’s up with App Icons?

    What’s up with App Icons?

    When you create an image set in Xcode, it’s so easy to automatically fill the wells for each scale factor. You just need to give each the three scale factor image files…

    Keep reading

  • What’s new Swift 4.2?

    What’s new Swift 4.2?

    The latest update of Swift 4.2 came out last week at WWDC, and it has some pretty exciting improvements. Some had me thinking ‘that’ll be useful’, some had me excited and some, to…

    Keep reading