NetNewsWire/Multiplatform/Shared/SwiftUI Extensions/Image-Extensions.swift

24 lines
353 B
Swift
Raw Normal View History

2020-07-01 23:33:07 +02:00
//
// Image-Extensions.swift
// NetNewsWire
//
// Created by Maurice Parker on 7/1/20.
// Copyright © 2020 Ranchero Software. All rights reserved.
//
import SwiftUI
import RSCore
extension Image {
init(rsImage: RSImage) {
#if os(macOS)
self = Image(nsImage: rsImage)
#endif
#if os(iOS)
self = Image(uiImage: rsImage)
#endif
}
}