Skip to content

Commit

Permalink
feat: cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
mackoj committed Sep 16, 2024
1 parent 26b38da commit 3a48f9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/SnapshotTestingPlugin/SnapshotTestingPlugin.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if canImport(Foundation) && canImport(ObjectiveC)
import Foundation

/// A protocol that defines a plugin for snapshot testing, designed to be used in environments that support Objective-C.
Expand All @@ -8,19 +7,20 @@ import Foundation
/// environments where both Foundation and Objective-C are available, making it compatible with Objective-C runtime features.
///
/// Conforming classes must be marked with `@objc` to ensure compatibility with Objective-C runtime mechanisms.
#if canImport(ObjectiveC)
@objc
#endif
public protocol SnapshotTestingPlugin: AnyObject {

/// A unique string identifier for the plugin.
///
/// Each plugin must provide a static identifier that uniquely distinguishes it from other plugins. This identifier is used
/// to register and retrieve plugins within a registry, ensuring that each plugin can be easily identified and utilized.
static var identifier: String { get }

/// Initializes a new instance of the plugin.
///
/// This initializer is required to allow the Objective-C runtime to create instances of the plugin class when registering
/// and utilizing plugins. The initializer must not take any parameters.
init()
}
#endif

0 comments on commit 3a48f9d

Please sign in to comment.