Skip to content

Instantly share code, notes, and snippets.

@1998code
Created July 29, 2022 06:45
Show Gist options
  • Save 1998code/c58a0e53ce1eae2ba5f0549ae6d9a370 to your computer and use it in GitHub Desktop.
Save 1998code/c58a0e53ce1eae2ba5f0549ae6d9a370 to your computer and use it in GitHub Desktop.
Pizza Delivery Attributes Sample
struct PizzaDeliveryAttributes: ActivityAttributes {
public typealias PizzaDeliveryStatus = ContentState
public struct ContentState: Codable, Hashable {
var driverName: String
var estimatedDeliveryTime: Date
}
var numberOfPizzas: Int
var totalAmount: String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment