Swift Videos

Leave a comment

I have recently started creating and sharing videos on the Swift programming language on youtube. If you are an iOS developer, are looking to get into mobile development, check them out and level up in Swift.

My latest is a video on Swift enums and tuples. What are they, how to they work, and why they are so cool in Swift.

Thanks for watching.

Product Market Fit – This week in Startups


Good video on product market fit and how to measure.

E993: Superhuman CEO Rahul Vohra shares the formula for his Product-Market Fit Engine; Future of Angel Investing w/Jeff Clavier (Uncork), Ben Ling (Bling), Clara Brenner (Urban Innovation Fund); plus LAUNCH Scale Partner Talk w/Help Scout VP of Sales Tim Thyne

How many people would be disappointed if your product didn’t exist?

Whom with this product most benefit?

Why do people love your product and what is holding them back from loving it?

New Course – Levelling Up in Auto Layout

1 Comment

Hi everyone,

I am very excited to announce a new course on Udemy called Levelling Up In Auto Layout. This course is designed to help iOS developers learn the fundamentals of Auto Layout and help them build and design great layouts.

You can check out the course here. First x50 signups are free using this couple code (please leave a review).

Free Coupon Code

I hope you enjoy the course. See you in there!



This course teaches you all the fundamentals and concepts required to build iOS applications using Auto Layout.


  • Constraints
  • Pinning & Aligning
  • Intrinsic Content Size
  • Content Hugging & Compression Resistance
  • Layout Guides
  • Safe Areas
  • Priorities
  • Stack Views
  • Scroll Views


Hand crafted videos and walkthroughs on fundamentals of Auto Layout.
Countless examples, challenges, and solution to most common problems.
Solid foundation for becoming a professional iOS Engineer.

How to zoom scroll Mac

1 Comment

My buddy Dan showed me this cool trick for two finger zooming on the mac.

Open Accessibility in Preferences and select Zoom, then Use scroll gesture with modifier.

Screen Shot 2018-12-07 at 9.28.41 AM.png

Now when you see something you want to zoom into on the screen, hold down control, x2 finger swipe up, and move the mouse around and you will zoom!

Cool. Thx Dan.

Trouble Installing Link Conditioner

1 Comment

With the latest Mojave upgrade, Link Conditioner wasn’t installing correctly. You would follow instructions that would normally work like this


Only do have it disappear in the System Preferences after using it once.

My buddy Dan showed me the fix. First remove the link conditioner from your personally library preference pane like this

cd Library/PreferencePanes
rm -rf Network\ Link\ Conditioner.prefPane

Then manually install it in the machine preference by doing this

open /Library/PreferencePanes

And then manually dragging the icon from the Xcode package you downloaded

Screen Shot 2018-10-31 at 3.03.23 PM.png

Into the preference pain you just opened

Screen Shot 2018-10-31 at 3.03.30 PM.png

Once done, the conditioner should show up/and stay in your System Preferences.

Screen Shot 2018-10-31 at 3.06.19 PM.png

Thanks Dan!

How to serve up files locally from your Mac via a webserver

Leave a comment

Colleague Dan showed me this neat trick for serving up local files in your Android device as a way of getting access to self-signed certs.

# Simple web server for the local directory
alias webserver='python -m SimpleHTTPServer 8000'

How to add UI Automation test to existing Xcode project

Leave a comment

Create a new project.

Add a new target by hitting the ‘+’ sign near the bottom.

Screen Shot 2018-10-18 at 1.37.17 PM

Add iOS UI Testing Bundle

Screen Shot 2018-10-18 at 1.37.53 PM

Edit your scheme

Screen Shot 2018-10-18 at 1.39.38 PM

Confirm at testing bundle was added

Screen Shot 2018-10-18 at 1.39.50 PM

Open up your test

Screen Shot 2018-10-18 at 1.41.50 PM

And insert a break point

Screen Shot 2018-10-18 at 1.41.56 PM

Run your test. Hit record and Xcode will record your application press.

Screen Shot 2018-10-18 at 1.47.41 PM

Add accessibility to your buttons and controls like this

    let button: UIButton = {
        let button = UIButton()
        button.translatesAutoresizingMaskIntoConstraints = false
        button.backgroundColor = .green
        button.setTitle("GOT IT", for: .normal)
        button.setTitleColor(.black, for: .normal)
        button.addTarget(self, action: #selector(buttonPressed), for: .touchUpInside)

        button.accessibilityIdentifier = "gotItButton"

        return button

Sample test

    func testExample() {
        // Use recording to get started writing UI tests.
        // Use XCTAssert and related functions to verify your tests produce the correct results.

        XCUIApplication().buttons["GOT IT"].tap()
        XCTAssertTrue(XCUIApplication().buttons["gotItButton"].waitForExistence(timeout: 10))

Older Entries

%d bloggers like this: