iconoir-icons / iconoir-swift

Swift package containing Iconoir icons.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Size on SwiftUI

baronha opened this issue · comments

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

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)
    }
}

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)
    }
}

Yes this is the correct usage.