# Function declares an opague return

**URL:** <https://forums.kodeco.com/t/function-declares-an-opague-return/111321>\
**Category:** Swift\
**Created:** [June 6, 2020, 4:26pm UTC](https://forums.kodeco.com/t/function-declares-an-opague-return/111321 "2020-06-06T16:26:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![flmcl](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/flmcl/32/81494_2.png) [@flmcl](https://forums.kodeco.com/u/flmcl)\
**Post date:** [June 6, 2020, 4:26pm UTC](https://forums.kodeco.com/t/function-declares-an-opague-return/111321/1 "2020-06-06T16:26:51Z")

</div>

Any help would be appreciated, thank you

![Screen Shot 2020-06-06 at 9.17.41 AM](https://files.chunter.kodeco.com/original/3X/c/e/ce64023077f774f5962122cd932289bc6bc498f1.png)

---

<div class="post-metadata">

**Author:** ![jayantvarma](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jayantvarma/32/111768_2.png) [@jayantvarma](https://forums.kodeco.com/u/jayantvarma)\
**Post date:** [June 12, 2020, 12:02am UTC](https://forums.kodeco.com/t/function-declares-an-opague-return/111321/3 "2020-06-12T00:02:47Z")

</div>

Hi @flmcl,  
In the property body, it is required to return a View, You are creating the myDistance, and printing but you are not returning a View.

cheers,

---

<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:** [November 20, 2020, 8:33am UTC](https://forums.kodeco.com/t/function-declares-an-opague-return/111321/4 "2020-11-20T08:33:08Z")

</div>

Closed on November 20, 2020, 8:33am UTC

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