如果能提交任何您發現的錯誤,我將不勝感激。
舊字形的優點.png
// Responsive Chips Selection | |
// See Also: https://youtu.be/T82izB2XBMA?si=Cnf6rGdyisG8ZWoX | |
import SwiftUI | |
struct Tag: Hashable { | |
var name: String | |
var color: Color | |
} |
// Copyright © 2025 MING | |
// MIT License | |
import SwiftUI | |
struct ContentView: View { | |
@State private var colorful: Bool = true | |
@State private var dragLocation: CGPoint = .zero | |
var body: some View { |
import AppKit | |
import Charts | |
import CoreVideo | |
import SwiftUI | |
struct FPSMeasurement: Identifiable, Equatable { | |
let id: Int | |
let fps: Int | |
static func == (lhs: FPSMeasurement, rhs: FPSMeasurement) -> Bool { |
Warning
This is patched as of iOS/iPadOS 18.1 DevBeta 5. If you want to follow this, stay on Beta 4.
import SwiftUI | |
// MARK: - ProgressRingScreen | |
/// A screen demonstrating a circular progress ring with a slider and control panel. | |
/// Uses a `ProgressRingViewModel` to track and animate the progress state. | |
struct ProgressRingScreen: View { | |
/// A view model that tracks and animates the progress value. | |
@State var viewModel = ProgressRingViewModel() | |
/* ==UserStyle== | |
@name gmail--mono | |
@namespace github.com/openstyles/stylus | |
@version 1.0.10 | |
@description Implementation of https://x.com/guerriero_se/status/1792924958579900781. | |
@author Sebastiano Guerriero, Cyriaque 'cisoun' Skrapits | |
==/UserStyle== */ | |
/* | |
* WARNING: Use Gmail's default theme with this! |
"""Hello world, with a genetic algorithm. | |
https://twitter.com/matthen2/status/1769368467067621791 | |
""" | |
import random | |
import time | |
from dataclasses import dataclass | |
from itertools import chain | |
from typing import Iterable, List |