Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Object-Oriented Swift Complex Data Structures Instances of Objects

Boyang Zhang
Boyang Zhang
4,580 Points

Confused about the playground

Every time I create an instance of a struct or class, the simulator in playground runs it and this happens: Say I have a struct named Person. Now i create an instance let me = Person() Instead of show "Person" in the stimulating panel like what I saw in the video, mine shows "__lldb_expr_43.Person"

Why does this happen? Though the code runs successfully.

1 Answer

Gabriel Santos
Gabriel Santos
4,113 Points

Hey Zhang,

Could you post your code? That will really help out.