Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save karigrooms/d35a655f83d67cebb18830b3ad92adfb to your computer and use it in GitHub Desktop.
Save karigrooms/d35a655f83d67cebb18830b3ad92adfb to your computer and use it in GitHub Desktop.
Blog: ObservableObjects and Protocols - Use Combine explicitly to reference Published to workaround Cuckoo mocking issue
// Copyright 2021 Expedia, Inc.
// SPDX-License-Identifier: Apache-2.0
import Combine
protocol PriceRequesting {
var price: Price? { get }
var priceValue: Combine.Published<Price?> { get }
var pricePublisher: Combine.Published<Price?>.Publisher { get }
func fetch()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment