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 FoundationEssentials | |
| #else | |
| import Foundation | |
| #endif | |
| import OSCKitCore | |
| import SocketAddress | |
| import IORing | |
| import IORingUtils | |
| actor IORingOSCServer { |
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
| /// HeimASN1Translator generated 2022-11-14 06:23:27 +0000 | |
| import Foundation | |
| import BigNumber | |
| import AnyCodable | |
| import ASN1CodingKit | |
| // ASN.1 module RFC2459 with explicit tagging | |
| typealias Version = Int | |
| let rfc3280_version_1: Version = 0 |
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
| #include <SystemConfiguration/SystemConfiguration.h> | |
| #include "SCExtras.h" | |
| static void | |
| __SCDynamicStoreBlockCallBack(SCDynamicStoreRef store, CFArrayRef changedKeys, void *info) | |
| { | |
| void (^block)(SCDynamicStoreRef store, CFArrayRef changedKeys) = info; | |
| block(store, changedKeys); | |
| } |
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 | |
| struct AttributedTextView: TextView, UIViewRepresentable { | |
| let content: NSAttributedString | |
| @Binding var height: CGFloat | |
| var font: UIFont? = nil | |
| var textAlignment: NSTextAlignment = .left | |
| var lineBreakMode: NSLineBreakMode = .byWordWrapping | |
| var textColor: UIColor = UIColor.label |
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 protocol TextView { | |
| var font: UIFont? { get set } | |
| func font(_ font: Font?) -> Self | |
| var textAlignment: NSTextAlignment { get set } | |
| func multilineTextAlignment(_ alignment: TextAlignment) -> Self | |
| var lineBreakMode: NSLineBreakMode { get set } |
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 | |
| struct IsVisibleModifier: ViewModifier { | |
| @Binding var isVisible: Bool | |
| func body(content: Content) -> some View { | |
| content | |
| .onAppear { | |
| self.isVisible = true | |
| } |
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 ReselectTabViewModifier: ViewModifier { | |
| @Environment(\.didReselectTab) private var didReselectTab | |
| let visibleAction: (() -> Void) | |
| let hiddenAction: (() -> Void)? | |
| @State var isVisible = false | |
| init(ifVisible visibleAction: @escaping (() -> Void), | |
| else hiddenAction: (() -> Void)?) { |
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 | |
| final class NavigationManager: ObservableObject { | |
| var canPopToRootView: Bool // NB: this must not be @Published | |
| init() { | |
| self.canPopToRootView = true | |
| } | |
| } |
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 | |
| private struct ScrollableModifier: ViewModifier { | |
| func body(content: Content) -> some View { | |
| ScrollView { | |
| content | |
| } | |
| } | |
| } |
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 | |
| import Combine | |
| private let motionShaked = PassthroughSubject<Void, Never>() | |
| extension UIWindow { | |
| open override func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) { | |
| if motion == .motionShake { | |
| motionShaked.send() | |
| } |
NewerOlder