# Chapter 32: Search Bar Height

**URL:** <https://forums.kodeco.com/t/chapter-32-search-bar-height/154755>\
**Category:** iOS Apprentice\
**Created:** [October 25, 2021, 5:13pm UTC](https://forums.kodeco.com/t/chapter-32-search-bar-height/154755 "2021-10-25T17:13:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebaferreras](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sebaferreras/32/109961_2.png) [@sebaferreras](https://forums.kodeco.com/u/sebaferreras)\
**Post date:** [October 25, 2021, 5:13pm UTC](https://forums.kodeco.com/t/chapter-32-search-bar-height/154755/1 "2021-10-25T17:13:13Z")

</div>

Hello!

This is probably a very silly question but anyways…

When selecting the search bar in the StoryBoard, the height shown is 51 points (this is also the value used when setting the tableView contentInset

```auto
tableView.contentInset = UIEdgeInsets(top: 51, left: 0, bottom: 0, right: 0)

```

![Screenshot 2021-10-25 at 19.03.32](https://files.chunter.kodeco.com/original/3X/d/c/dc1ac68f07863710706521fb5129fe0df43b8239.png)

But when getting the height using searchBar.bounds.height, the result is 56 instead:

```auto
print("Search bar height: \(searchBar.bounds.height)")
// => Search bar height: 56

```

Where are those extra 5 points coming from?

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [April 10, 2022, 9:13am UTC](https://forums.kodeco.com/t/chapter-32-search-bar-height/154755/2 "2022-04-10T09:13:23Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.
