Skip to content

Structure

SnapshotAction

Captures localized screenshots on simulators by running UI tests.

struct SnapshotAction

Overview

Launches simulators for each device/locale combination and runs the screenshot UI test scheme, organizing output into a locale/device/ directory structure.

Usage

let result = try await SnapshotAction().run(
    with: .init(devices: ["iPhone 16 Pro Max"], locales: ["en-US", "ja"]),
    context: context
)
print("Captured \(result.screenshotCount) screenshots")

Topics

Structures

Initializers

  • init()

    Creates a SnapshotAction.

Type Properties

Default Implementations

Relationships

Conforms To

  • Action
  • Swift.Sendable
  • Swift.SendableMetatype