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
public extension UserDefaults { | |
/// 用于app group的userDefaults,在此处设定的内容可以被app group中的成员使用 | |
static let appGroup = UserDefaults(suiteName: "group.com.fatbobman.healthnote")! | |
} |
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 SwiftSyntax | |
import SwiftSemantics | |
import Foundation | |
let source = try! String(contentsOf: URL(fileURLWithPath: "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/arm64e.swiftinterface")) | |
var collector = DeclarationCollector() | |
let tree = try SyntaxParser.parse(source: source) | |
tree.walk(&collector) |
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
@propertyWrapper | |
public struct PublishedObject<Value: ObservableObject> { // wrappedValue 要求符合 ObservableObject | |
public var wrappedValue: Value | |
public init(wrappedValue: Value) { | |
self.wrappedValue = wrappedValue | |
} | |
public static subscript<OuterSelf: ObservableObject>( | |
_enclosingInstance observed: OuterSelf, |
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
struct Transcription: Equatable, Identifiable { | |
let id = UUID() | |
let startTime: String | |
var context: String | |
} | |
let regexPattern = "Fireflies" | |
let transcriptionFakeResult: [Transcription] = [ | |
.init(startTime: "06:32", context: "*fiRefLIes As you use fiRefLIes to Fireflies record and transcribe meetings, please ensure that you are followfiRefLIesing all FIREFLIEscountry, state, local, and org level laws around consent."), |
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
// | |
// FreeSpaceViewController.swift | |
// Free Space | |
// | |
// Created by Kyle Howells on 04/05/2022. | |
// | |
import UIKit | |
class FreeSpaceViewController: UIViewController { |
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
// | |
// InfiniteScrollChart.swift | |
// ChartsGallery | |
// | |
// Created by beader on 2022/11/3. | |
// | |
import SwiftUI | |
import Charts |
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 UIKit | |
struct SetSheetDelegate: UIViewRepresentable { | |
let delegate:SheetDelegate | |
init(isDisable:Bool,attempToDismiss:Binding<UUID>){ | |
self.delegate = SheetDelegate(isDisable, attempToDismiss: attempToDismiss) | |
} |
OlderNewer