Image for post
Image for post

This would be a really cool article if I could replicate something as magical as Richard Hendricks from HBO’s Silicon Valley but I’m just a regular pleb doing software development because I like to.

So, compressing videos — right now the cameras in phones are insanely powerful. 4k videos, insanely high bitrates, quality this, performance that, etc. But do we need that all? Do all those cat and dog videos require 4k resolution? Does your latest Instagram story require to be the highest quality 4 seconds of whatever Instagram stories tend to be about? Well, maybe, but I prefer to think that saving money for storage costs, network costs and the speed at which you can send and/or receive videos is a more entertaining topic. …


So, it's a pretty cool thing to do a custom navigation transitions between your controllers. I decided to play around with it and the end result turned out to be quite good looking. Why not share with others.

This is the default transition that everyone using iOS is definitely used to.

Image for post
Image for post

My idea was to create something a little different. I wanted the transition to go side-by-side where one controller pushes the other out of the way and vice-versa. …


Image for post
Image for post

Once upon a time, there was a small group of iOS devs who decided that it would be awesome to try out AsyncDisplayKit to do a whole development project from A to Z. Why not.

First of all, why do even bother? Well, for us these were the reasons:

  • We wanted to come as close as possible to writing full layout in code;
  • Laying out UI in code is 'the thing';
  • 60 fps custom CollectionViewLayout sounds eye-pleasing;
  • Just lacked a challenge? Well, not really, but it's motivating to say.

Anyway — nodes, nodes, nodes everywhere. Everything is a node. And nodes go into other nodes. …


Image for post
Image for post

Ok, then — Force touch. Starting off, I had no idea, how and when to handle this. Initially, I thought about using the default way of handling a Force Touch, but this case turned out somewhat specific therefore I resulted to going in for a custom implementation of a UIGestureRecognizer.

Image for post
Image for post
Final product

The end goal here was to have the ability to force touch a specific UICollectionViewCell and have a simultaneous animation for background dimming and the two action icons expanding from the touch point, so to achieve this a custom approach was developed.

The protocol

So, it all started off with a protocol, that works as our back and forth between the gesture actions and the main controller itself. …

About

Rihards Baumanis

iOS dev @ Chili Labs

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store