3 ms·Swift enums and std::variant would work the same.by layoutIfNeeded 7y agoSwift enums and std::variant would work the same.