Simple Slots framework in Swift