Size on SwiftUI
baronha opened this issue · comments
Bảo Hà. commented
Size not working SwiftUI like example:
import SwiftUI
import Iconoir_swift
struct ContentView: View {
var body: some View {
Iconoir.bell.asImage
.foregroundColor(.blue)
.font(.system(size: 100))
}
}
==> The icon remains unchanged in size
YoRolling commented
I think you should use resizable
modifier
import SwiftUI
import Iconoir_swift
struct ContentView: View {
var body: some View {
Iconoir.bell.asImage
.resizable()
.foregroundColor(.blue)
.frame(width:200,height:200)
}
}
Matthew Kaulfers commented
I think you should use
resizable
modifierimport SwiftUI import Iconoir_swift struct ContentView: View { var body: some View { Iconoir.bell.asImage .resizable() .foregroundColor(.blue) .frame(width:200,height:200) } }
Yes this is the correct usage.
Bảo Hà. commented
too blur @mkaulfers