Open in app

Sign In

Write

Sign In

acodeguy
acodeguy

28 Followers

Home

About

Mar 14, 2022

The Hidden Gotcha of Default VStack Spacing

Last week, my colleague and I were working on a new feature. We decided to deliver most of it in UIKit, but with a little SwiftUI splashed-in. The design wanted a few elements arranged vertically to be flush next to one another, no gaps, nothing. Using a VStack to arrange our elements resulted in gaps as depicted by the horizontal black lines. Odd. We’d not set any padding on any of the elements, so what gives!

Swift

1 min read

The Hidden Gotcha of Default VStack Spacing
The Hidden Gotcha of Default VStack Spacing
Swift

1 min read


Mar 3, 2022

Simple Error-Handling when Parsing JSON with Codable in Swift: DecodingError

While working on a personal project this week, I was stumped at why the response suddenly began to fail parsing. The console had no useful information about where it was failing or why. I suspected it was the API , that the structure had changed because it’s still in beta…

Swift

1 min read

Simple Error-Handling when Parsing JSON with Codable in Swift: DecodingError
Simple Error-Handling when Parsing JSON with Codable in Swift: DecodingError
Swift

1 min read


Published in

I am Become Coder, Creator of Code Things

·Nov 19, 2020

IsNotEmpty: A Simple Extension to Improve Readability when Checking the Count of Collections in Swift

Long title, I know. I don’t know about you, but my mind always jolts a little when I read something like below (line 9): Okay, this is a small example, but it does illustrate the point: who speaks or writes like that! “if not bands is empty…” For readability, I just had a brainstorm: extend the Collection protocol to provide something more readable: Notice that it reads way more like English now: “if bands is not empty…”

Swift

1 min read

Swift

1 min read


Published in

I am Become Coder, Creator of Code Things

·Nov 10, 2020

Building an iOS app without Storyboards

Why should I? Interface Builder is great whilst you’re learning on your own, but as your app and team grows, you’re likely to have regular fights with merge conflicts because of storyboards. They just don’t play well with version control. How do I start? Glad you asked. Start a new project (single view template is great). Once…

Software Development

2 min read

Building an iOS app without Storyboards
Building an iOS app without Storyboards
Software Development

2 min read


Published in

I am Become Coder, Creator of Code Things

·Apr 22, 2020

Create an iOS UIButton Completely in Code Using Swift

Written with Swift v5.2 Objective Deciding it was time to embrace building views in code as as well using Interface Builder, I set myself the challenge to build a simple UIButton completely in code. Here’s what I made: In the interests of keeping things as simple as possible, I chose a minimal approach. I have a bigger demo in the works already! And here’s the code that I came-up with for that above UIButton:

Swift

1 min read

Programmatic iOS UIButton in Swift
Programmatic iOS UIButton in Swift
Swift

1 min read


Published in

I am Become Coder, Creator of Code Things

·May 3, 2019

Testing Core Data Models in Swift with XCTest

Currently, I’m teaching myself to build iOS apps in Swift as my main focus, whilst up-skilling in other areas too, such as Ruby on Rails. I’ve recently graduated from Makers Academy, where I learned the black art of test-driven development and am keen to use it everywhere I can. The…

IOS

3 min read

Testing Core Data Models in Swift with XCTest
Testing Core Data Models in Swift with XCTest
IOS

3 min read


Published in

I am Become Coder, Creator of Code Things

·Apr 19, 2019

Running XCTests in an Xcode Playground

Having recently been introduced to the wonders of Test-Driven Development, starting with RSpec and then Jasmine, I was challenged to port over some UI-less Ruby/JavaScript code, test-driven, into Swift, my weapon of choice. …

IOS

2 min read

Running XCTests in an Xcode Playground
Running XCTests in an Xcode Playground
IOS

2 min read


Published in

I am Become Coder, Creator of Code Things

·Apr 14, 2019

I am Become Coder, Creator of Code Things

Hi. I’m Andrew. I’m currently a developer-in-training at Makers Academy in London, learning the black art of software development. After four years in desktop support, turning things off-and-on again and kicking the living shit out of all printers working or not, just for giggles, I decided to follow the most…

Development

2 min read

I am Become Coder, Creator of Software
I am Become Coder, Creator of Software
Development

2 min read

acodeguy

acodeguy

28 Followers

iOS Software Engineer. Punster extraordinaire. Part-time nerf herder.

Following
  • DevTechie

    DevTechie

  • Nitin Aggarwal

    Nitin Aggarwal

  • Wil Wheaton

    Wil Wheaton

  • Zafar Ivaev

    Zafar Ivaev

  • Kelly Batchelor

    Kelly Batchelor

See all (45)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams