NetNewsWire/Multiplatform/Shared/SwiftUI Extensions/Image-Extensions.swift
2020-07-01 16:33:07 -05:00

24 lines
353 B
Swift

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