You need to set the color after you set the activity indicator style. It seems that setting the activityIndicatorViewStyle resets the color for the activityIndicator
So just do this:
// ....
activityIndicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.whiteLarge
activityIndicator.color = .black
footerView.addSubview(activityIndicator)
activityIndicator.startAnimating()
self.tableView.tableFooterView = footerView
This should work just fine.