//
//  NewsView.swift
//  instagram-clone
//
//  Created by Hwang ChaeYeong on 2021/07/21.
//

import SwiftUI

struct NewsView: View {
    let image_fire = UIImage.fontAwesomeIcon(name: .fireAlt, style: .solid, textColor: .purple, size: CGSize(width: 30, height: 30))
    let image_close = UIImage.fontAwesomeIcon(name: .times, style: .solid, textColor: .gray, size: CGSize(width: 30, height: 30))
    var body: some View {
        HStack {
            Image(uiImage: image_fire)
                .resizable()
                .aspectRatio(contentMode: .fit)
                .frame(width: 30)
            
            Text("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam neque magna, cursus id turpis at, interdum posuere nulla.")
                .instaStylePrimary()
            
            Image(uiImage: image_close)
                .instaStylePrimary()
                .frame(width: 20)
        }
    }
}

struct NewsView_Previews: PreviewProvider {
    static var previews: some View {
        NewsView()
    }
}
