Simple Lottery!

This is a funny Apple universal application that creates a lottery between defined nominees. It uses Combine and SwiftUI frameworks and demonstrates how we can use @Published, ObservableObject, and Timers in Swift.

demo-1

demo-2

Main Features

  • Define Nominees
  • Create an Election Publisher using a timer to update the result while lottery in progress
  • Display the winner when the lottery rounds ended

Author

Soheil Novinfard

GitHub