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 Build a Playlist Browser with Swift Building the Music Library and Playlist Models Creating a Data Model

Is it just me or is the phrasing of this task odd? I'm sure the task is simple, but I don't get what I'm supposed to do

Does anyone else feel the same?

ChocolateBox.swift
struct ChocolateBox{

var caramelDelight = 

let flavor [
  "flavor" : "caramel"
]
}

I figured it out, but I still think the phrasing is a bit odd.

Here is my solution.

struct ChocolateBox{

var caramelDelight = [ "flavor" : "caramel"]

}

1 Answer

struct ChocolateBox{

var caramelDelight = [ "flavor" : "caramel"]

}