Skip to content

Commit

Permalink
Clarify Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Jul 19, 2023
1 parent d2ed6a4 commit 5d8ce1b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Sources/Spezi/Configuration/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ public struct Configuration {

/// A ``Configuration`` defines the ``Standard`` and ``Component``s that are used in a Spezi project.
///
/// If no ``Standard`` is provided, Spezi injects a default empty standard instance only conforming to ``Standard``.
/// Ensure that your standard conforms to all protocols enforced by the ``Component``s. If your ``Component``s require protocol conformances
/// you must add them to your custom type conforming to ``Standard`` and passed to the initializer or extend a prebuild standard.
///
/// Use ``Configuration/init(_:)`` to use default empty standard instance only conforming to ``Standard`` if you do not use any ``Component`` requiring custom protocol conformances.
/// - Parameters:
/// - components: The ``Component``s used in the Spezi project. You can define the ``Component``s using the ``ComponentBuilder`` result builder.
public init<S: Standard>(
Expand All @@ -70,9 +70,8 @@ public struct Configuration {

/// A ``Configuration`` defines the ``Standard`` and ``Component``s that are used in a Spezi project.
///
/// If no ``Standard`` is provided, Spezi injects a default empty standard instance only conforming to ``Standard``.
/// Ensure that your standard conforms to all protocols enforced by the ``Component``s. If your ``Component``s require protocol conformances
/// you must add them to your custom type conforming to ``Standard`` and passed to the initializer or extend a prebuild standard.
/// This initializer creates a default empty standard instance only conforming to ``Standard``.
/// Use ``Configuration/init(standard:_:)`` to provide a custom ``Standard`` instance if you use any ``Component`` requiring custom protocol conformances.
///
/// - Parameters:
/// - components: The ``Component``s used in the Spezi project. You can define the ``Component``s using the ``ComponentBuilder`` result builder.
Expand Down

0 comments on commit 5d8ce1b

Please sign in to comment.