# Scroll View School - Part 16: Section 2: Content | Ray Wenderlich

**URL:** <https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139>\
**Category:** 🎓 Courses & Articles\
**Created:** [November 1, 2017, 9:14am UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139 "2017-11-01T09:14:10Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vegetarianzombie](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/vegetarianzombie/32/94022_2.png) [@vegetarianzombie](https://forums.kodeco.com/u/vegetarianzombie)\
**Post date:** [November 1, 2017, 9:14am UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139/1 "2017-11-01T09:14:10Z")

</div>

Content insets are where you can add padding to a scroll view. This video will show you how.

* * *
 This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/4040-scroll-view-school/lessons/16](https://www.raywenderlich.com/4040-scroll-view-school/lessons/16)

---

<div class="post-metadata">

**Author:** ![luckylisa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/luckylisa/32/102075_2.png) [@luckylisa](https://forums.kodeco.com/u/luckylisa)\
**Post date:** [February 14, 2018, 4:06am UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139/2 "2018-02-14T04:06:02Z")

</div>

For the “Adjust Scroll View Insets” checked or uncheck, the effect seems not obvious.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [February 17, 2018, 9:40pm UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139/3 "2018-02-17T21:40:55Z")

</div>

@vegetarianzombie Can you please help with this when you get a chance? Thank you - much appreciated! :]

---

<div class="post-metadata">

**Author:** ![frankl](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/frankl/32/110937_2.png) [@frankl](https://forums.kodeco.com/u/frankl)\
**Post date:** [February 18, 2018, 12:17am UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139/4 "2018-02-18T00:17:37Z")

</div>

I was wondering how the content offset of the scrollView automatically adjusted to (0, -44) after you added fgScrollView.contentInset = UIEdgeInsets(top: navigationBar.frame.height, left: 0, bottom: 0, right: 0) in viewDidLoad when you were manually adding a navigation bar.

---

<div class="post-metadata">

**Author:** ![lac\_ekim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/lac_ekim/32/102075_2.png) [@lac\_ekim](https://forums.kodeco.com/u/lac_ekim)\
**Post date:** [March 22, 2018, 12:28am UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139/5 "2018-03-22T00:28:30Z")

</div>

@vegetarianzombie xcode doesn’t recognize this “fgScrollView.contentInset = UIEdgeInsets(top: navigationBar.frame, left: \<#T##CGFloat#\>, bottom: \<#T##CGFloat#\>, right: \<#T##CGFloat#\>)”

The frame part is where it is not pulling up.

---

<div class="post-metadata">

**Author:** ![lac\_ekim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/lac_ekim/32/102075_2.png) [@lac\_ekim](https://forums.kodeco.com/u/lac_ekim)\
**Post date:** [March 22, 2018, 4:13am UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139/6 "2018-03-22T04:13:15Z")

</div>

is @vegetarianzombie MIA? he hasn’t talked to @luckylisa since feb 13

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [March 22, 2018, 10:01am UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139/7 "2018-03-22T10:01:25Z")

</div>

> [@lac\_ekim](#):
>
> is @vegetarianzombie MIA? he hasn’t talked to @luckylisa since feb 13

@lac_ekim The video team has been hard at work over the past few weeks on the Android and Kotlin launch on the website. They will be back on the forums soon. Thank you for your patience - much appreciated! :]

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 25, 2018, 10:59pm UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139/9 "2018-07-25T22:59:07Z")

</div>



---

<div class="post-metadata">

**Author:** ![srinath2763](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/srinath2763/32/110937_2.png) [@srinath2763](https://forums.kodeco.com/u/srinath2763)\
**Post date:** [August 3, 2020, 9:03pm UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139/10 "2020-08-03T21:03:21Z")

</div>

hello. For Some reason after adding the navigation controller and **unchecking** adjusts scroll view insets (for both the initial navigation controller and the view controller.) and **checking** both (under top bar , under bottom bar) for both navigation controller and the view controller, the content always seems to start from a few points after the end of navigation bar. Opposed to the video in which adding the navigation view controller shows content start from the top of the screen (and below(as if inside) the navigation bar when the options: adjusts scroll view insets, under top bar, under bottom bar are unchecked. Attached image for reference. ![About View Controller](https://files.chunter.kodeco.com/original/3X/9/6/96cbd01f44f8f18e6ca57b74e5c67edacb426fc8.jpeg) ![Navigation Controller](https://files.chunter.kodeco.com/original/3X/b/0/b0b781b071e81b4bbfe2a436a004e23133050250.jpeg) ! ![ViewController](https://files.chunter.kodeco.com/original/3X/c/2/c28a3a9e62ff4c48bde9c33f503c0749162ee831.jpeg)

---

<div class="post-metadata">

**Author:** ![srinath2763](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/srinath2763/32/110937_2.png) [@srinath2763](https://forums.kodeco.com/u/srinath2763)\
**Post date:** [August 3, 2020, 9:33pm UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139/11 "2020-08-03T21:33:19Z")

</div>

@luckylisa It seems as if in the size inspector, if you set content inset to Never, the behavior is similar to the one shown in video. After toggling the Adjusts Scroll View Insets, you will see the same behavior as in the video. Took me sometime to figure out.

---

<div class="post-metadata">

**Author:** ![srinath2763](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/srinath2763/32/110937_2.png) [@srinath2763](https://forums.kodeco.com/u/srinath2763)\
**Post date:** [August 3, 2020, 9:34pm UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139/12 "2020-08-03T21:34:22Z")

</div>

@vegetarianzombie Is the solution to the problem to set ‘Content Inset’ on scroll view in the attribute inspector to ‘Never’? Thanks.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [April 6, 2021, 2:55am UTC](https://forums.kodeco.com/t/scroll-view-school-part-16-section-2-content-ray-wenderlich/36139/13 "2021-04-06T02:55:55Z")

</div>

@srinath2763 @lac_ekim @frankl @luckylisa Please check out the updated version of the course when you get a chance:

[https://www.raywenderlich.com/9223-scroll-view-school](https://www.raywenderlich.com/9223-scroll-view-school)

I hope it helps!
