I needed to be able to change the colour of my entire interface when the user tapped a button. My first design consisted of a series of labels that were easily referenced by outlets. Later I decided a Table View was a better fit – but how to retrospectively update the colours of the table cells?
Way back in 2013 I created an Alfred workflow that utilised Bart Busschots‘s XKPasswd password generator library. Recently, Bart has done a major rework of the library and released the new version as Crypt::HSXKPasswd. He put a lot of work into the usability of the library which made it very simple for me to create a new workflow for it.
I have a model class which keeps, amongst other things, the user’s current location.
While the location is used for internal calculations, there is also a screen where I display the current location to the user. Formatting the two values for display is easy enough, but non-trivial and worth encapsulating. I found the simplest way to encapsulate it was by creating a computed property on the model class itself.
In the app I am currently building, I decided the square button I have in one corner looks too small on an iPad screen, but it’s OK on an iPhone screen. The button is drawn by a PaintCode style kit so resizing it, in general, wasn’t going to be a problem. But, I wondered, how could I go about the resizing?
The reason I will almost certainly buy the new model of Apple TV later this year is because of a purchase I made in 2004. That’s the 2004 purchase pictured at right – a fourth generation 40 gigabyte iPod.
You might think the link between the two would be the obvious one – I bought into Apple products then and I still buy Apple now because I like them. While that’s true, it’s not the main reason a fourth generation Apple TV is likely in my future.
So, after I came up with this idea, found the domain available, created the web site and tweaked it to my liking – I discover there is what appears to be an official @swifttips Twitter account from Apple.
Hopefully they don’t get upset about this little site – or maybe they’ll buy the domain for millions. I can only hope. 🙂
Lynda.com is a paid access site but has incredibly great content and is excellent value. I’m a member and I viewed their Swift – Essential Training course which I not only got value from but utterly enjoyed. In fact, I’ve viewed it twice.
They have other specialised Swift courses, too.