| 123456789101112131415161718192021222324 |
- //
- // Image.swift
- // OmniBLE
- //
- // Created by Pete Schwamb on 2/7/20.
- // Copyright © 2021 LoopKit Authors. All rights reserved.
- //
- import SwiftUI
- private class FrameworkBundle {
- static let main = Bundle(for: FrameworkBundle.self)
- }
- extension Image {
- init(frameworkImage name: String, decorative: Bool = false) {
- if decorative {
- self.init(decorative: name, bundle: FrameworkBundle.main)
- } else {
- self.init(name, bundle: FrameworkBundle.main)
- }
- }
- }
|