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.


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.