Skip to content

Commit

Permalink
Add @_spi(TokamakCore) protection for EnvironmentValues.merge(_:)
Browse files Browse the repository at this point in the history
…/`.merging(_:)`
  • Loading branch information
regexident committed Jan 2, 2022
1 parent 09c333b commit c6b7bd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Sources/TokamakCore/Environment/EnvironmentValues.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public struct EnvironmentValues: CustomStringConvertible {
}
}

@_spi(TokamakCore)
public mutating func merge(_ other: Self?) {
if let other = other {
values.merge(other.values) { existing, new in
Expand All @@ -52,6 +53,7 @@ public struct EnvironmentValues: CustomStringConvertible {
}
}

@_spi(TokamakCore)
public func merging(_ other: Self?) -> Self {
var merged = self
merged.merge(other)
Expand Down
2 changes: 1 addition & 1 deletion Sources/TokamakGTK/GTKRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import CGTK
import Dispatch
import TokamakCore
@_spi(TokamakCore) import TokamakCore

extension EnvironmentValues {
/// Returns default settings for the GTK environment
Expand Down

0 comments on commit c6b7bd9

Please sign in to comment.