The calculated distance (air line) between Swords and Bray is approximately 18 miles respectively 30 kilometers.
By car or train, the actual journey to Bray is certainly longer, as only the direct route (as the crow flies) between Swords and Bray has been calculated here.