How a four-dimensional de Sitter solution remains outside the swampland