Please note that this project was built just for fun.
Using tricky ways like using GeometryReader
/ PreferenceKey
to try to bypass the layout engine is not recommended and could get yourself in trouble.
To know more about how to build SwiftUI's layout, please check Apple's sample: https://developer.apple.com/documentation/swiftui/composing_custom_layouts_with_swiftui.