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
| <!-- | |
| [INPUT]: 依赖 Standby 的本地设置、WKWebView 网页存储与无后端数据流边界 | |
| [OUTPUT]: 对外提供 Standby 隐私政策公开页 | |
| [POS]: privacy 的 Standby 合规文档,被 App Store 隐私链接消费 | |
| [PROTOCOL]: 变更时更新此头部,然后检查 AGENTS.md | |
| --> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> |
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 HeaderView: View { | |
| var body: some View { | |
| HStack { | |
| Image(systemName: "info.circle.fill") | |
| .resizable() | |
| .frame(width: 12, height: 12) | |
| Text("Section Header") | |
| .font(.system(size: 13)) |
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
| # configure.ac | |
| # add an --enable-macos-universal-binary flag that when building for mac | |
| # create a universal x86_64 / arm64 binary | |
| AC_ARG_ENABLE([macos-universal-binary], | |
| [AS_HELP_STRING([--enable-macos-universal-binary], | |
| [Create an universal x86_64+arm64 binary when building for macos)])],, | |
| [enable_macos_universal_binary=no]) | |
| # Determine if we're building for macos/darwin by checking for macos & darwin |
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 Foundation | |
| import Combine | |
| enum APIError: Error, LocalizedError { | |
| case unknownError | |
| case unknownURL | |
| case unknownData | |
| case parserError(reason: String) | |
| case apiError(reason: String) |
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 Foundation | |
| import Combine | |
| enum APIError: Error, LocalizedError { | |
| case unknown, apiError(reason: String), parserError(reason: String) | |
| var errorDescription: String? { | |
| switch self { | |
| case .unknown: | |
| return "Unknown error" |
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
| // | |
| // Settings.swift | |
| // Settings | |
| // | |
| // Created by Jordan Singer on 2/20/21. | |
| // | |
| import SwiftUI | |
| struct Settings: 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
| // | |
| // ContentView.swift | |
| // | |
| // | |
| // Created by Bernstein, Joel on 7/4/20. | |
| // | |
| import SwiftUI | |
| struct ElementModel: Identifiable |
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 PlaygroundSupport | |
| struct iPod: View { | |
| var body: some View { | |
| VStack(spacing: 40) { | |
| Screen() | |
| ClickWheel() | |
| Spacer() | |
| } |
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 | |
| extension NSTextField { | |
| open override var focusRingType: NSFocusRingType { | |
| get { .none } | |
| 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 Foundation | |
| func format(bytes: Double) -> String { | |
| guard bytes > 0 else { | |
| return "0 bytes" | |
| } | |
| // Adapted from http://stackoverflow.com/a/18650828 | |
| let suffixes = ["bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] | |
| let k: Double = 1000 |
NewerOlder