Difference between a ZStack or using .overlay()
In ZStack views are independent on each other and stack fits (if does not have own frame) to biggest view. Also order in ZStack can be modified by using .zIndex modifier. All views are in ZStack coordinate space. In .overlay case the view inside overlay always bound to parent view and always above parent view … Read more