Apple hinted at its first foldable phone during the iOS 27 launch, revealing code that tracks device folding states.