Currently in Anvil, the Anvil::Swapchain doesn't record the width and height it was created with, and the Anvil::RenderSurface caches the values it was created with, but they can change when the window is resized, and it provides no way to determine the current dimensions.
This is a problem, because detecting whether the swapchain needs to be resized is a matter of getting the current extent of the rendering surface and comparing it to the extent of the swapchain.