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 Generics in Swift Generics and Protocols Protocol with Associated Type

Give the function an external name of with and local name of object.

Associated Types in Action Please help me

generics.swift
protocol ConfigurableRow {
    associatedtype Object
    mutating func configure(


}

2 Answers

Chris Stromberg
PLUS
Chris Stromberg
Courses Plus Student 13,389 Points
protocol ConfigurableRow  {

  associatedtype Object

  func configure (with object : Object) 
}

Thanks Chris you are a champion

Chris Stromberg
PLUS
Chris Stromberg
Courses Plus Student 13,389 Points

I wouldn't go that far, but you could accept my answer as the correct answer!