目次
Xcode の新機能
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
protocol SetAlgebra
セットの作成
init()
init()
メンバーシップのテスト
func contains(Self.Element) -> Bool
func contains(Self) -> Bool
associatedtype Element
スタイリングコンテンツ
func border<S>(S, width: CGFloat) -> some View
func foregroundStyle<S>(S) -> some View
func foregroundStyle<S1, S2>(S1, S2) -> some View
func foregroundStyle<S1, S2, S3>(S1, S2, S3) -> some View
func backgroundStyle<S>(S) -> some View
var backgroundStyle: AnyShapeStyle?
protocol ShapeStyle
システムカラー
static var black: Color
static var blue: Color
static var brown: Color
static var clear: Color
static var cyan: Color
static var gray: Color
static var green: Color
static var indigo: Color
static var mint: Color
static var orange: Color
static var pink: Color
static var purple: Color
static var red: Color
static var teal: Color
static var white: Color
static var yellow: Color
角度のグラデーション
static angularGradient(_:center:startAngle:endAngle:)
static func angularGradient(colors: [Color], center: UnitPoint, startAngle: Angle, endAngle: Angle) -> AngularGradient
static func angularGradient(stops: [Gradient.Stop], center: UnitPoint, startAngle: Angle, endAngle: Angle) -> AngularGradient
円錐グラデーション
static conicGradient(_:center:angle:)
static func conicGradient(colors: [Color], center: UnitPoint, angle: Angle) -> AngularGradient
static func conicGradient(stops: [Gradient.Stop], center: UnitPoint, angle: Angle) -> AngularGradient
楕円のグラデーション
static ellipticalGradient(_:center:startRadiusFraction:endRadiusFraction:)
static func ellipticalGradient(colors: [Color], center: UnitPoint, startRadiusFraction: CGFloat, endRadiusFraction: CGFloat) -> EllipticalGradient
static func ellipticalGradient(stops: [Gradient.Stop], center: UnitPoint, startRadiusFraction: CGFloat, endRadiusFraction: CGFloat) -> EllipticalGradient
線形グラデーション
static linearGradient(_:startPoint:endPoint:)
static func linearGradient(colors: [Color], startPoint: UnitPoint, endPoint: UnitPoint) -> LinearGradient
static func linearGradient(stops: [Gradient.Stop], startPoint: UnitPoint, endPoint: UnitPoint) -> LinearGradient
放射状グラデーション
static radialGradient(_:center:startRadius:endRadius:)
static func radialGradient(colors: [Color], center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) -> RadialGradient
static func radialGradient(stops: [Gradient.Stop], center: UnitPoint, startRadius: CGFloat, endRadius: CGFloat) -> RadialGradient
素材
static var ultraThinMaterial: Material
static var thinMaterial: Material
static var regularMaterial: Material
static var thickMaterial: Material
static var ultraThickMaterial: Material
static var bar: Material
画像ペイントスタイル
static func image(Image, sourceRect: CGRect, scale: CGFloat) -> ImagePaint
階層的スタイル
var secondary: some ShapeStyle
var tertiary: some ShapeStyle
var quaternary: some ShapeStyle
var quinary: some ShapeStyle
static var primary: HierarchicalShapeStyle
static var secondary: HierarchicalShapeStyle
static var tertiary: HierarchicalShapeStyle
static var quaternary: HierarchicalShapeStyle
static var quinary: HierarchicalShapeStyle
セマンティック(意味)スタイル
static var foreground: ForegroundStyle
static var background: BackgroundStyle
static var selection: SelectionShapeStyle
static var separator: SeparatorShapeStyle
static var tint: TintShapeStyle
static var placeholder: PlaceholderTextShapeStyle
static var link: LinkShapeStyle
static var fill: FillShapeStyle
static var windowBackground: WindowBackgroundShapeStyle
struct AnyShapeStyle
struct Gradient
struct MeshGradient
struct AnyGradient
struct ShadowStyle
struct Glass
アプリで VoiceOver をサポート
shouldGroupAccessibilityChildren
accessibilityCustomRotors
accessibilityElementsHidden
accessibilityRespondsToUserInteraction
accessibilityViewIsModal
var shouldGroupAccessibilityChildren: Bool
XCTest
Sendable
SourceLocation
Subscribers.Completion
完了ステータス
case finished
case failure(Failure)
イニシャライザー
init(fileID: String, filePath: String, line: Int, column: Int)
インスタンスプロパティ
var column: Int
var fileID: String
var fileName: String
var line: Int
var moduleName: String
標準ライブラリ
true
false
static func yield() async
static func sleep(nanoseconds: UInt64) async throws
static func sleep(for:tolerance:clock:)
Instant
Duration
タスクのキャンセル
struct CancellationError
func cancel()
var isCancelled: Bool
static var isCancelled: Bool
static func checkCancellation() throws
func withTaskCancellationHandler<T>(operation: () async throws -> T, onCancel: () -> Void) async rethrows -> T
func withTaskCancellationHandler<T>(handler: () -> Void, operation: () async throws -> T) async rethrows -> T
func addTask(priority: TaskPriority?, operation: () async -> ChildTaskResult)
func addTaskUnlessCancelled(priority: TaskPriority?, operation: () async -> ChildTaskResult) -> Bool
StringLiteralType
ExtendedGraphemeClusterLiteralType
StoreKit
SKAdNetworkItems
SKExternalLinkAccount
SKExternalPurchase
SKExternalPurchaseCustomLinkRegions
SKExternalPurchaseLink
SKExternalPurchaseMultiLink
SKIncludeConsumableInAppPurchaseHistory
広告ネットワーク ID
SKAdNetworkIdentifier
Swift Testing
必須
テスト関数の定義
スイートの型によるテスト関数の整理
XCTest からのテストの移行
macro Test(String?, any TestTrait...)
struct Test
struct Case
var id
var associatedBugs: [Bug]
var comments: [Comment]
var displayName: String?
var isParameterized: Bool
var isSuite: Bool
var name: String
var sourceLocation: SourceLocation
var tags: Set<Tag>
var timeLimit: Duration?
var traits: [any Trait]
パラメータ化されたテストの実装
期待と確認
期待値を確認する
macro expect(_:_:sourceLocation:)
macro require(Bool, @autoclosure () -> Comment?, sourceLocation: SourceLocation)
macro require<T>(T?, @autoclosure () -> Comment?, sourceLocation: SourceLocation) -> T
既知の問題
テストで既知の問題を記録する
func withKnownIssue(Comment?, isIntermittent: Bool, sourceLocation: SourceLocation, () throws -> Void)
func withKnownIssue(Comment?, isIntermittent: Bool, isolation: isolated (any Actor)?, sourceLocation: SourceLocation, () async throws -> Void) async
func withKnownIssue(Comment?, isIntermittent: Bool, sourceLocation: SourceLocation, () throws -> Void, when: () -> Bool, matching: KnownIssueMatcher) rethrows
func withKnownIssue(Comment?, isIntermittent: Bool, isolation: isolated (any Actor)?, sourceLocation: SourceLocation, () async throws -> Void, when: () async -> Bool, matching: KnownIssueMatcher) async rethrows
typealias KnownIssueMatcher
デフォルトの実装
Equatable の実装
macro Suite(String?, any SuiteTrait...)
型プロパティ
static var current: Test?
protocol SignedInteger
インスタンスメソッド
func dividingFullWidth((high: Self, low: Self.Magnitude)) -> (quotient: Self, remainder: Self)
型プロパティ
static var max: Self
static var min: Self
T
U
V
W
XYZ