Correct syntax to add a custom Symbol image/SVG?

I've followed the documentation for making a symbol set here: https://developer.apple.com/documentation/xcode/creating_custom_symbol_images_for_your_app


And also the docs on configuring: https://developer.apple.com/documentation/uikit/uiimage/configuring_and_displaying_symbol_images_in_your_ui


However, nothing covers what the syntax is to actually include one of these in a view. For example, given an asset in Assets.xcassets called "sausages" what should the correct syntax be on line 5?:


Text("Sausages")
            .font(.title)
            .tabItem {
                VStack {
                    Image(systemName: "sausages")
                    Text("sausages")
                }
            }


Or does this have to be done with standard Swift?

Accepted Reply

In case anyone else hits this, the solution (via Stack Overflow) is this syntax:


Image(uiImage: UIImage(named: "Sausage")!)

Replies

In case anyone else hits this, the solution (via Stack Overflow) is this syntax:


Image(uiImage: UIImage(named: "Sausage")!)