webui: Fix setting swift-related attributes