<commit_before>---
layout: post
title: "Tap to Reveal in UIUITabelViewCell" 
categories: UIKit, UITableView, UITableViewCell
tags: animation, change height

---
One of the most versatile UIViews in iOS SDK is the `UITableView`. It is really useful to display a list of items. If a detailed view of the item is required, a details `UIView` is created and is pushed on top of the exiting view. This works most of the time. On certain occasions the item being in a position is important and pushing a new view results in a loss of context. So I wanted to figure out if the height of the `UITableViewCell` can be changed based on its content. This would achieve a **Tap to Reveal** animation as shown below.

<commit_msg>Update post.<commit_after>---
layout: post
title: "Tap to Reveal in UIUITabelViewCell" 
---
One of the most versatile UIViews in iOS SDK is the `UITableView`. It is really useful to display a list of items. If a detailed view of the item is required, a details `UIView` is created and is pushed on top of the exiting view. This works most of the time. On certain occasions the item being in a position is important and pushing a new view results in a loss of context. So I wanted to figure out if the height of the `UITableViewCell` can be changed based on its content. This would achieve a **Tap to Reveal** animation as shown below.


{'fraction_non_alphanumeric': 0.05025868440502587, 'fraction_numerical': 0.0, 'mean_word_length': 4.052238805970149, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6341904', 'n_tokens_mistral': 366, 'n_tokens_neox': 340, 'n_words': 233}