var body: some View {
    if let image = image {
        Image(uiImage: image)
            .resizable()
            .renderingMode(.template)
//                .frame(width: .infinity, height: .infinity, alignment: .center)
            .frame(width: nil, height: nil, alignment: .center)
            .foregroundColor(color)
    }
}

.infinity 부분에서 보라색 주의표시가 나타났다. 다음과 같은

<aside> ⚠️ Invalid frame dimension (negative or non-finite).

</aside>

infinity로 지정된 프레임을 nil로 변경해줬다.

&ref

Solution | https://www.hackingwithswift.com/forums/swiftui/is-there-an-update-for-this-frame-maxwidth-infinity/4316