# Scroll View School - Part 2: Section 1: Frames and | Ray Wenderlich

**URL:** <https://forums.kodeco.com/t/scroll-view-school-part-2-section-1-frames-and-ray-wenderlich/36100>\
**Category:** 🎓 Courses & Articles\
**Created:** [October 31, 2017, 2:38pm UTC](https://forums.kodeco.com/t/scroll-view-school-part-2-section-1-frames-and-ray-wenderlich/36100 "2017-10-31T14:38:54Z")\
**Posts on this page:** 8\
**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:** [October 31, 2017, 2:38pm UTC](https://forums.kodeco.com/t/scroll-view-school-part-2-section-1-frames-and-ray-wenderlich/36100/1 "2017-10-31T14:38:55Z")

</div>

Every view has a frame and has bounds. This video introduces these concepts and how they relate to scroll views.

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

---

<div class="post-metadata">

**Author:** ![freddyf](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/freddyf/32/108051_2.png) [@freddyf](https://forums.kodeco.com/u/freddyf)\
**Post date:** [November 3, 2017, 2:36pm UTC](https://forums.kodeco.com/t/scroll-view-school-part-2-section-1-frames-and-ray-wenderlich/36100/2 "2017-11-03T14:36:10Z")

</div>

I watched the video 3 times and still don’t get it … in fact, I thought I knew what frame and bounds were, but now I’m confused :-/  
Maybe if you could animate the images, that would make sense ?

---

<div class="post-metadata">

**Author:** ![abdullahth](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/abdullahth/32/81494_2.png) [@abdullahth](https://forums.kodeco.com/u/abdullahth)\
**Post date:** [November 18, 2017, 12:07pm UTC](https://forums.kodeco.com/t/scroll-view-school-part-2-section-1-frames-and-ray-wenderlich/36100/3 "2017-11-18T12:07:15Z")

</div>

Same here.  
Before watching the video, I had a general idea about what are frame and bound.  
Now, I’m more confused!

Animation and more explanation will definitely be helpful.

---

<div class="post-metadata">

**Author:** ![hegazy](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hegazy/32/101666_2.png) [@hegazy](https://forums.kodeco.com/u/hegazy)\
**Post date:** [December 28, 2017, 6:34pm UTC](https://forums.kodeco.com/t/scroll-view-school-part-2-section-1-frames-and-ray-wenderlich/36100/4 "2017-12-28T18:34:28Z")

</div>

same here i got confused.

---

<div class="post-metadata">

**Author:** ![gnatyuk](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gnatyuk/32/81494_2.png) [@gnatyuk](https://forums.kodeco.com/u/gnatyuk)\
**Post date:** [January 27, 2018, 9:41am UTC](https://forums.kodeco.com/t/scroll-view-school-part-2-section-1-frames-and-ray-wenderlich/36100/5 "2018-01-27T09:41:55Z")

</div>

I think Brian misspoke when he said _“If we change the bounds origin of the green view to 60, 80”_ (01:56),  
he meant bounds of the **white** rectangle

---

<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:46pm UTC](https://forums.kodeco.com/t/scroll-view-school-part-2-section-1-frames-and-ray-wenderlich/36100/7 "2018-07-25T22:46:30Z")

</div>

Opened on July 25, 2018, 10:46pm UTC



---

<div class="post-metadata">

**Author:** ![scamardella](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/scamardella/32/81494_2.png) [@scamardella](https://forums.kodeco.com/u/scamardella)\
**Post date:** [August 4, 2018, 9:14am UTC](https://forums.kodeco.com/t/scroll-view-school-part-2-section-1-frames-and-ray-wenderlich/36100/8 "2018-08-04T09:14:06Z")

</div>

When you change the bounds of the green view to 60, 80, shouldn’t the green view shift right and down instead of being in the top left corner of the superview? Shouldn’t the values be negative if the green view’ bounds are placed in the top left corner of the superview?

---

<div class="post-metadata">

**Author:** ![bdmoakley](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bdmoakley/32/108772_2.png) [@bdmoakley](https://forums.kodeco.com/u/bdmoakley)\
**Post date:** [August 8, 2018, 1:53pm UTC](https://forums.kodeco.com/t/scroll-view-school-part-2-section-1-frames-and-ray-wenderlich/36100/9 "2018-08-08T13:53:45Z")

</div>

This is actually a very confusing topic and it helps to play around with it in code to understand. I didn’t do a good job of explaining it. Think of the bounds as a window to the green view. By default that window is at 0,0 but if you move that window 60 points to the right and 80 points down, the green view, appears to shift up to the left.

The green view isn’t moving. The actual perspective is shifting. That’s why it appears to move up and to the left. i hope that helps.
