Closed roben closed 4 years ago
Hey,
SwiftUI allows only text and image tab items. Here's a quote from documentation: "Tab views only support tab items of type Text, Image, or an image followed by text. Passing any other type of view results in a visible but empty tab item." https://developer.apple.com/documentation/swiftui/tabview
Summary and/or background
When using
URLImage
within a tab view, the images are shown larger than the tab bar itself.OS and what device you are using
Version of URLImage library
What you expected would happen A clear and concise description of what you expected to happen.
What actually happens When using
URLImage
within a tab view, the images are shown larger than the tab bar itself. Setting a frame does not have any effect:Using the resize processor with 20px size and scale = 1 is a workaround for now but it is ugly and platform dependant.
Sample code
Test data
Additional information: