Your Second iOS & SwiftUI App, Episode 4: SF Symbols | raywenderlich.com

Review how to add SF Symbols in SwiftUI, and dynamically add an SF Symbol based on a book’s title.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/25836622-your-second-ios-swiftui-app/lessons/4

Hi Catie and RayWenderlich staff, unfortunately the letter image is not appearing (there is a view element there but it’s simply empty). I think I have the same code as in the tutorial so I’m not sure what I’m doing wrong.

I can send my Book View code if that helps. Thank you!

Hi! Does the “final” project for the episode work as expected? If you can send me the relevant code I’ll take a look :]

Not sure if this was answered privately or not, but I wanted to add what I found just in case.
I ran into the same thing. I did find the solution though. It looks like between this video and the last, the Book struct was passed some default values in the init for title and author. Editing your Book.swift file will remove the errors and display your T image. (Or based on whatever word set as the default title.)

init(title: String = "Title", author: String = "Author") {
        self.title = title
        self.author = author
    }