mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-26 09:33:25 +01:00
24 lines
353 B
Swift
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
|
|
}
|
|
|
|
}
|