IPa SingleTon Object switch to swift ver