# Can't embed a view in UIScrollView

**URL:** <https://forums.kodeco.com/t/cant-embed-a-view-in-uiscrollview/15618>\
**Category:** iOS\
**Created:** [June 7, 2016, 6:08am UTC](https://forums.kodeco.com/t/cant-embed-a-view-in-uiscrollview/15618 "2016-06-07T06:08:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmuldoon](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mmuldoon/32/81494_2.png) [@mmuldoon](https://forums.kodeco.com/u/mmuldoon)\
**Post date:** [June 7, 2016, 6:08am UTC](https://forums.kodeco.com/t/cant-embed-a-view-in-uiscrollview/15618/1 "2016-06-07T06:08:54Z")

</div>

I have created a view and the content is larger than the screen. How do I add this view as a subview of a scrollview? For some reason I can’t do this in Document Outline. It will only let me add the scrollview as a subview of the existing view.

If I select editor → embed in from the menu after clicking on the view, scroll view is greyed out.

Thanks!

---

<div class="post-metadata">

**Author:** ![mmuldoon](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/mmuldoon/32/81494_2.png) [@mmuldoon](https://forums.kodeco.com/u/mmuldoon)\
**Post date:** [June 8, 2016, 2:38pm UTC](https://forums.kodeco.com/t/cant-embed-a-view-in-uiscrollview/15618/2 "2016-06-08T14:38:36Z")

</div>

Not sure why, but the issue was that I was selecting the top most view. The only option for this view is embedding in a navigation controller or tab view controller. So adding a scroll view under that and adding everything else beneath is a non-issue.
