# MyLocations Chapter 31 - Self has no member View?

**URL:** <https://forums.kodeco.com/t/mylocations-chapter-31-self-has-no-member-view/67943>\
**Category:** iOS Apprentice\
**Created:** [April 17, 2019, 4:45pm UTC](https://forums.kodeco.com/t/mylocations-chapter-31-self-has-no-member-view/67943 "2019-04-17T16:45:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![coder\_rgv7](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/coder_rgv7/32/81494_2.png) [@coder\_rgv7](https://forums.kodeco.com/u/coder_rgv7)\
**Post date:** [April 17, 2019, 4:45pm UTC](https://forums.kodeco.com/t/mylocations-chapter-31-self-has-no-member-view/67943/1 "2019-04-17T16:45:48Z")

</div>

I’m on the last chapter of _MyLocations_, on the part where a roll-away logo animation is being added. But the code for creating the logoButton is returning an error at the line where the x coordinate for the centre of the button is assigned, as in the picture below.  
 ![10%20PM](https://files.chunter.kodeco.com/original/3X/b/6/b6a0494d4f16087ce3e8a0a4c97f552078636d0e.png)  
It’s saying that `Value of type '(CurrentLocationViewController) -> () -> (CurrentLocationViewController)' has no member 'view'`  
How do I solve this? Is there an error with my code?  
Do note that this is code from the iOS 11, Xcode 9 and Swift 4 version of the book, although I am using the latest version of all of these.

Thanks!

---

<div class="post-metadata">

**Author:** ![gdelarosa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gdelarosa/32/109063_2.png) [@gdelarosa](https://forums.kodeco.com/u/gdelarosa)\
**Post date:** [April 17, 2019, 6:08pm UTC](https://forums.kodeco.com/t/mylocations-chapter-31-self-has-no-member-view/67943/2 "2019-04-17T18:08:25Z")

</div>

Hi @coder_rgv7, looks like you are missing “lazy” before var logoButton.

Best,  
Gina

---

<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:** [October 1, 2019, 8:45am UTC](https://forums.kodeco.com/t/mylocations-chapter-31-self-has-no-member-view/67943/3 "2019-10-01T08:45:48Z")

</div>

Closed on October 1, 2019, 8:45am UTC

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