The design of roofed swimming pools in buildings involves architectural and structural considerations to ensure safety, functionality, and aesthetics. Key aspects include waterproofing the roof, ensuring structural integrity, incorporating skylights for natural light, and maintaining water quality. Additionally, it's important to consider the building's climate, energy efficiency, and integration with the surrounding environment.