The newly created UITabBarController looks like this.
But what I want is something like this:
After checking this, it needs to be modified through tab.scrollEdgeAppearance.
The specific modification method is as follows:
let appearance = self.tabBar.standardAppearance.copy()
appearance.backgroundColor = .white
appearance.shadowColor = .lightGray // 这个就是顶部的小横线的效果
self.tabBar.scrollEdgeAppearance = appearance