Why use Ruin II under effect of swiftcast consume its effect?

If it is an instant spell why does it consume swiftcast effect?