Learn Courses My Dashboard

Conform to view

Hello I want to compartmentalize my Toolbar into its own struct and pass it in to my other views but i get this error.

This is the struct in a different file:

Any suggestions?

Thanks, Todd

Hey Todd, your struct Toolbar isn’t conforming to the View protocol at the top

struct Toolbar: View

Thanks. I appreciate your help!