iPhones have yearly release cycles. Just buy the XS in around 12 months for a major discount. It'll still be a top-notch phone with one of the most efficient processors out there.
For people who always want the latest and greatest: https://www.apple.com/shop/iphone/iphone-upgrade-program