We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I brought FlagKit into a SwiftUI project via SPM and I notice the images are very pixelated.
This is the code I used to render the images:
struct ContentView: View { let country = "US" let width: CGFloat = 100 let height: CGFloat = 100 var body: some View { VStack { Image(uiImage: Flag(countryCode: country)!.image(style: .circle)) .resizable() .aspectRatio(contentMode: .fit) .frame(width: width, height: height, alignment: .center) Image(uiImage: Flag(countryCode: country)!.image(style: .roundedRect)) .resizable() .aspectRatio(contentMode: .fit) .frame(width: width, height: height, alignment: .center) Image(uiImage: Flag(countryCode: country)!.image(style: .square)) .resizable() .aspectRatio(contentMode: .fit) .frame(width: width, height: height, alignment: .center) Image(uiImage: Flag(countryCode: country)!.originalImage) .resizable() .aspectRatio(contentMode: .fit) .frame(width: width, height: height, alignment: .center) } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I brought FlagKit into a SwiftUI project via SPM and I notice the images are very pixelated.
This is the code I used to render the images:
The text was updated successfully, but these errors were encountered: