This is now available in a dedicated package: ActivityView
Alternatively my SwiftUI Backports now includes a more complete implementation of ShareLink that's also more performant.
| You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
| ## Core Principles | |
| 1. EXPLORATION OVER CONCLUSION | |
| - Never rush to conclusions | |
| - Keep exploring until a solution emerges naturally from the evidence | |
| - If uncertain, continue reasoning indefinitely | |
| - Question every assumption and inference |
| // | |
| // HelloAnimation.swift | |
| // OpenvisionOS | |
| // | |
| // Created by Amos Gyamfi on 17.2.2024. | |
| // | |
| import SwiftUI | |
| struct HelloAnimation: View { |
| // Used to detect specific issue with JSON decoding | |
| func decodeOrReport(data: Data) { | |
| do { | |
| let _ = try JSONDecoder().decode(WidgetResponse.self, from: data) | |
| print("\n\n👍ALL GOOD\n\n") | |
| } catch DecodingError.keyNotFound( let key, let context) { | |
| print("\n\n⛔️FAILED TO DECODE\n\n") | |
| print("could not find key \(key) in JSON: \(context.debugDescription)") | |
| } catch DecodingError.valueNotFound( let type, let context) { | |
| print("\n\n⛔️FAILED TO DECODE\n\n") |
| import SpriteKit | |
| import SwiftUI | |
| // MARK: - GameScene | |
| class GameScene: SKScene { | |
| override func didMove(to _: SKView) { | |
| physicsBody = SKPhysicsBody(edgeLoopFrom: frame) | |
| } |
| import SwiftUI | |
| extension Calendar { | |
| func generateDates( | |
| inside interval: DateInterval, | |
| matching components: DateComponents | |
| ) -> [Date] { | |
| var dates: [Date] = [] | |
| dates.append(interval.start) |
| javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
| default: Turndown | |
| }, { | |
| default: Readability | |
| }]) => { | |
| /* Optional vault name */ | |
| const vault = ""; | |
| /* Optional folder name such as "Clippings/" */ |
This is now available in a dedicated package: ActivityView
Alternatively my SwiftUI Backports now includes a more complete implementation of ShareLink that's also more performant.
| // | |
| // NSPersistentContainer+extension.swift | |
| // CDMoveDemo | |
| // | |
| // Created by Tom Harrington on 5/12/20. | |
| // Copyright © 2020 Atomic Bird LLC. All rights reserved. | |
| // | |
| import Foundation | |
| import CoreData |
| #if DEBUG | |
| import SwiftUI | |
| private let screenshotDirectory = "/Users/inket/Desktop/" | |
| struct PreviewScreenshot: ViewModifier { | |
| struct LocatorView: UIViewRepresentable { | |
| let tag: Int | |
| func makeUIView(context: Context) -> UIView { |
| // | |
| // SnapCarousel.swift | |
| // prototype5 | |
| // | |
| // Created by xtabbas on 5/7/20. | |
| // Copyright © 2020 xtadevs. All rights reserved. | |
| // | |
| import SwiftUI |