Last active
November 15, 2021 16:41
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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