The leader can transfer their privileges to any co-leader by pressing on the three-dot icon in the guild window. In the drop-down menu, there is an option to transfer leadership privileges.