Swift : Improper restriction of power consumption