# Chapter 19: Presentation Controller

**URL:** <https://forums.kodeco.com/t/chapter-19-presentation-controller/145233>\
**Category:** iOS Animations by Tutorials\
**Created:** [July 30, 2021, 5:13am UTC](https://forums.kodeco.com/t/chapter-19-presentation-controller/145233 "2021-07-30T05:13:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcneils](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mcneils/32/81494_2.png) [@mcneils](https://forums.kodeco.com/u/mcneils)\
**Post date:** [July 30, 2021, 5:13am UTC](https://forums.kodeco.com/t/chapter-19-presentation-controller/145233/1 "2021-07-30T05:13:06Z")

</div>

So I’m trying to increase the width of the images in the scroll view and here’s the problem:

I first go into the storyboard and raise the scroll view so that the bottom of the images won’t be hidden anymore like so:  
 ![image](https://files.chunter.kodeco.com/original/3X/d/d/dd3de78da8170c0d8d5ecf4b9df0435d48018e5c.jpeg)

Then I go into **ViewController** class inside the _positionListItems_ function. In there I remove the \* 1.33 operation on the variable itemHeight, and instead put that logic in the itemWidth variable like so:  
 ![image](https://files.chunter.kodeco.com/original/3X/5/6/5646fb1512dc35c79fd8c13d6cc221fee488c6fa.png)

This works as I now have images like this:  
 ![image](https://files.chunter.kodeco.com/original/3X/4/6/468f07e8d1f2416564e664497d985877182e6197.jpeg)

the issue is that when the animation controller dismisses, the image does a “snap back into place” effect when its complete. It’s hard to describe but if you follow the above steps that I did above you’ll see it when you run the application.

---

<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:** [January 12, 2022, 9:13pm UTC](https://forums.kodeco.com/t/chapter-19-presentation-controller/145233/2 "2022-01-12T21:13:41Z")

</div>

Closed on January 12, 2022, 9:13pm UTC

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