Swift3 如何在Swift中交换UITabBarController中的tabBar项

Swift3 如何在Swift中交换UITabBarController中的tabBar项,swift3,Swift3,在特定条件下,我想将索引1处的tabBar项与索引6处的tabBar项交换。因此,索引6处的tabBar项将出现在索引1上,而索引1处的tabBar项将出现在索引6上。我该怎么做

在特定条件下,我想将索引1处的tabBar项与索引6处的tabBar项交换。因此,索引6处的tabBar项将出现在索引1上,而索引1处的tabBar项将出现在索引6上。我该怎么做