You have to creatw a c++ project. Create a class extending character.
Create one extending movement component.
Override the movement component swimming state with similar instructions found in crouch.
And/or you just ignore the capsule altogether by changing its collision response while in a swimming state… but that does potentially break physics, so be careful…