Added Swift singleton snippet