This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// webview.swift | |
// BR | |
// | |
// Created by BAproductions on 8/12/22. | |
// | |
import SwiftUI | |
import WebKit | |
import Combine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView: View { | |
let svgURL = URL(string: "URL TO YOUR SVG")! | |
var body: some View { | |
WebView(url: svgURL) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
import WebKit | |
@main | |
struct MonacoApp: App { | |
let codeSnippet = """ | |
var body: some Scene { | |
WindowGroup { | |
EditorView(content: codeSnippet, language: "swift", theme: "vs-dark") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
public struct AsyncImage<Content>: View where Content: View { | |
private var content: (ImageProvider) -> _ConditionalContent< | |
SwiftUI.AsyncImage<Content>, Content | |
> | |
@Environment(\.imageProvider) var imageProvider | |
public init( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Combine | |
import SwiftUI | |
struct RichTextEditor: NSViewRepresentable { | |
@Binding var attributedText: NSAttributedString | |
@Binding var showInspector: Bool | |
var activity: PassthroughSubject<Date, Never> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// WebView.swift | |
// OPass | |
// | |
// Created by secminhr on 2022/6/23. | |
// 2022 OPass. | |
// | |
import SwiftUI | |
import Combine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ContentView.swift | |
// WKWebViewTemplate | |
// | |
// Created by Hiroyuki KITAGO on 2022/01/26. | |
// | |
import SwiftUI | |
import WebKit | |
struct ContentView: View { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// VKLoginWebView.swift | |
// SwiftUI-Course | |
// | |
// Created by andrey.antropov on 14.10.2021. | |
// | |
import SwiftUI | |
import WebKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// packet.swift | |
// | |
// As CoreMIDI/MIDIPacket exposes the 'data' member as a Tuple in Swift, this | |
// solution accepts a varying size [UInt8] and returns the corresponding tuple. | |
// Usage is as follows: | |
// | |
// packet.data = packetDataFromBytes(data: myArray) | |
// | |
// Created by James Ranson on 12/19/20. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// WebViewUI.swift | |
// Styling | |
// | |
// Created by Mark C. Maxwell on The New Lux | |
// Copyright © 2020. All rights reserved. | |
// Source: https://github.com/kylehickinson/SwiftUI-WebView | |
import Combine | |
import SwiftUI |
NewerOlder