This file contains hidden or 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
| public func _UIViewGlass(variant: Int) -> NSObject? { | |
| let glassClass = objc_lookUpClass("_UIViewGlass")! as AnyObject | |
| let glass = glassClass._alloc()._init(variant: variant) | |
| return glass as? NSObject | |
| } | |
| /// Registers Objective-C methods Swift needs. | |
| fileprivate final class PrivateSelectors: NSObject { | |
| @objc(alloc) |
This file contains hidden or 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 func withAnimation<Result>( | |
| _ animation: Animation? = .default, | |
| _ body: @MainActor @escaping () throws -> Result | |
| ) async rethrows { | |
| await withCheckedContinuation { continuation in | |
| // Ensure the work runs on the MainActor | |
| Task { @MainActor in | |
| do { |
This file contains hidden or 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 ContentView: View { | |
| @State var text = "" | |
| @State var keyboardObserver = KeyboardObserver() | |
| @Namespace var union | |
| var body: some View { | |
| VStack { |
This file contains hidden or 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
| // | |
| /* | |
| Filename: ParallaxDemo.swift | |
| Project: Demo Project | |
| Created by John Durcan on 01/10/2025. | |
| Copyright © 2025 Itch Studio Ltd.. All rights reserved. |
This file contains hidden or 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
| private struct AsymmetricInsettableShape<S: Shape>: InsettableShape { | |
| private let shape: S | |
| private var horizontal: CGFloat | |
| private var vertical: CGFloat | |
| private var insetAccumulator: CGFloat = 0 | |
| init( | |
| shape: S, | |
| horizontal: CGFloat, |
This file contains hidden or 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
| // | |
| // DotPatternView.swift | |
| // x.com/mickces | |
| // | |
| // Created by mick on 4/27/25. | |
| // | |
| import SwiftUI | |
| public struct DotPatternView: View { |
This file contains hidden or 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 | |
| /// The main application entry point for the Ancient Prophecy Tab Bars app. | |
| /// | |
| /// This app demonstrates a custom tab bar implementation with an overlay menu system. | |
| /// Specifically the implementation of a separate tab bar option now available in iOS 26. | |
| /// The app automatically exits when the main content view disappears and uses a fixed content size window. | |
| @main | |
| struct AncientProphecyTabBarsApp: App { | |
| var body: some Scene { |
NewerOlder