iOS Build a Simple iPhone App with Swift Getting Started with iOS Development Swift Recap Part 1

samuele carpani
samuele carpani
4,219 Points

I don't understand what i need to do

help?

structs.swift
struct Tag {
  let name: String
}
struct Post {
  let title: String
}

1 Answer

Trevor Cruz
Trevor Cruz
19,588 Points
struct Tag {
  let name: String
}

struct Post {
  let title: String
  let author: String
  let tag: Tag
}

let firstPost = Post(title: "Title", author: "Author", tag: Tag(name: "Name"))

I think if I understand the code challenge you're on, this should work