My first iOS app will be released pretty soon!

I have been creating this to do app for the last 3 months. I started with a completely different design as compared to what it is right now. I started with two view controllers and used the first one as data entry whereas the second View controller was used to show the list of tasks. Then in December of 2017, I decided to change the design and data entry system. Instead of dedicating a whole view controller to a UITextView and a keyboard, I decided to shrink the size of the UITextView and it appears like a UIInputAccessoryView(it is NOT InputAccessoryView) on top of the keyboard. 

I am no designer, and the color scheme that I chose back in November underwent multiple changes. I, however, decided to go with this dark bluish color that looks premium and isn’t too bright.

The app is in it’s last stages and I will be releasing it hopefully by the end of this month. Some features will be added in the summers and I will try to start a new and big project during my summer vacations.

One thing I would like to mention is that don’t just start coding. Make sure you have a good design in mind before you start your code. You have carefully thought of every feature and animation. Sometimes, you get stuck with  UX (user experience) instead of  logical programming errors.  So I will make sure that for my next project, I have first sketched and designed the app on a sheet of paper before starting to code.

I will write another post, when I release the app, in which I will talk about the app in much more detail.


Apple will release HomePod on 9th February, pre-orders start this Friday

Apple will release HomePod on 9th February, 2018. The preorders will start this Friday, January 26th. The smart speaker will first go on sale in USA, UK and Australia. It’ll then arrive in France and Germany sometimes in Spring.

HomePod is Apple’s first smart speaker to rival Amazon’s Echo devices and Google Home. HomePod was initially planned to be released in December of 2017 during holiday season. However, it was delayed till now.

HomePod is priced at $349 and has always-on voice assistant – Siri. It can also be used to control all the HomeKit or smart devices connected around the house. Despite delaying the release, the HomePod seems to keep all the features announced* back in WWDC 2017. At $349, Apple is playing a pretty different game as compared to Google or Amazon with their tiny and cheap speakers.

The speaker comes in two colors – White and Space Grey.

Will you be buying HomePod? Leave your thoughts in the comments below.

UPDATE: *HomePod will not have Multi-room audio. Will come later this year with software update.

Dynamically change parent UIView’s height when TextView height changes

I have been working on a new app for the last few weeks and yesterday I ran into a small problem. I have a UITextView in a UIView container and I want the UITextView’s height to dynamically change as the user type in it. However, I also want the parent container’s height to increase as well. I broke this problem down in two sections:

  1. Dynamically change UITextView’s height
  2. Dynamically change container’s height.

First let’s start with UITextView’s height. There are plenty of ways you can do this, I decided to use UITextViewDelegate and it’s function ‘TextViewDidChange()’ to calculate the height of the textview. This function is called every time user types in the textview. Since I am not using storyboards for this project I have set all the constraints programmatically. Obviously for a certain element to increase it’s height dynamically you need to keep any one side of the element constraint-free.