I’m running both a 5S and 6S with latest iOS. An iPhone 8 should be good for st least five years.
Point being, the cycle isn't known. The iPhone 7 could be supported for many years. Or, hardware design could change in 2019 and even the XS and XR could be obsolete.