I hereby claim:
- I am treastrain on github.
- I am treastrain (https://keybase.io/treastrain) on keybase.
- I have a public key ASBdL6Vgvw1nlMCihCWm5S1HnhdFPENkrBUewmLlwPbsrQo
To claim this, I am signing this object:
// | |
// ContentView.swift | |
// Playground | |
// | |
// Created by treastrain on 2025/08/07. | |
// | |
public import Observation | |
import SwiftUI |
import Combine | |
import SwiftUI | |
public protocol StateProtocol: Sendable {} | |
public protocol StateMachineProtocol<State>: Actor { | |
associatedtype State: StateProtocol | |
nonisolated var state: State { get } | |
nonisolated var stateDidChange: AnyPublisher<State, Never> { get } | |
} |
import SwiftUI | |
struct ContentView: View { | |
@StateObject private var object = Object() | |
var body: some View { | |
List(object.numbers, id: \.self) { number in | |
Text("Content \(number)") | |
} | |
.refreshable { |
// swift-tools-version: 5.9 | |
import PackageDescription | |
let package = Package( | |
name: "Scipio-CwlCatchException", | |
platforms: [.iOS(.v15)], | |
dependencies: [ | |
.package(url: "https://github.com/Quick/Nimble", exact: "12.3.0"), | |
.package(url: "https://github.com/ashfurrow/Nimble-Snapshots", exact: "9.6.0"), |
// | |
// MCBrowserView.swift | |
// You can copy and modify this file and use it with free! | |
// | |
// Created by treastrain / Tanaka Ryoga on 2023/09/08. | |
// | |
import MultipeerConnectivity | |
import SwiftUI |
import Combine | |
import Foundation | |
// MARK: - パターン1 | |
final class Object1: ObservableObject { | |
@Published var value1 = 0 | |
@Published var value2 = 0 | |
@Published var value3 = 0 | |
} |
// | |
// ViewController.swift | |
// SheetPresentationControllerPlayground | |
// | |
// Created by Ryoga Tanaka on 2023/06/15. | |
// | |
import UIKit | |
@available(iOS 16.4, *) |
I hereby claim:
To claim this, I am signing this object:
in Swift, use
formatted
methods directly on the types you want to format, optionally usingFormatStyle
and its subtypes to customize formatter output. This approach supports dates, integers, floating-point numbers, measurements, sequences, and person name components. Foundation caches identically-configured formatter instances internally, allowing you to focus on your app’s formatting needs.Data Formatting | Apple Developer Documentation https://developer.apple.com/documentation/foundation/data_formatting
Decimal.FormatStyle
(via ParseableFormatStyle
)Decimal.FormatStyle.Attributed
Decimal.FormatStyle.Currency
](https://developer.apple.com/documentation/foun// | |
// CoreNFCProblemApp.swift | |
// CoreNFCProblem | |
// | |
// Created by treastrain on 2022/10/10. | |
// | |
import CoreNFC | |
import SwiftUI |