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 Creating an Instance

rico petrini
rico petrini
522 Points

i dont need help with the challenge i just need someone to sum it down for me.

i dont need help with the challenge i just need someone to sum it down for me.

structs.swift
struct Book {
  let title: String
  let author: String
  let price: Double
}

// Enter your code below

1 Answer

William Humphrey
William Humphrey
5,543 Points

All this is doing is showing you that after you have a struct you can then use that struct method much easier later. This will help cut down on typing, errors, and save you a lot of time when you need to write many more lines of code. Every time you use the word Book, in this example, its going to refer to what code you have within the {} Did that help?