How to set icon color in Swift?

We can set the icon from SF Symbols in the code:

                ToolbarItem{
                    Image(systemName: "bell.badge")
                        .renderingMode(.original)
                }

But what if we don’t like the default color of the icon? We can change them by:

                ToolbarItem{
                    Image(systemName: "bell.badge")
                        .symbolRenderingMode(.palette)
                        .foregroundStyle(Color.icon, .primary)
                }