Skip to content

FrakEnvironment

enum FrakEnvironment

Conforms to Swift.Equatable, Swift.Hashable, Swift.Sendable

Defined in: Sources/FrakSDK/Core/FrakEnvironment.swift:4

FrakEnvironment.custom(wallet:backend:walletScheme:)

Section titled “FrakEnvironment.custom(wallet:backend:walletScheme:)”
case custom(wallet: String, backend: String, walletScheme: String)
case development
case production
var backend: String { get }
var wallet: String { get }
var walletScheme: String { get }
static func custom(wallet: String, backend: String) -> FrakEnvironment

Local backend serves self-signed HTTPS; needs an ATS exception on device. walletScheme defaults to Frak’s own dev wallet, which is almost never right for a merchant’s stub server: use custom(wallet:backend:walletScheme:) to override it.

!=(::)

static func != (lhs: Self, rhs: Self) -> Bool

Returns a Boolean value indicating whether two values are not equal.

Inequality is the inverse of equality. For any values a and b, a != b implies that a == b is false.

This is the default implementation of the not-equal-to operator (!=) for any type that conforms to Equatable.

  • Parameters:
    • lhs: A value to compare.
    • rhs: Another value to compare.