Coloring the Navigation Bar in Swift

Coloring the Navigation Bar in an iOS app (including the sides of the tab) requires setting an appearance attribute within the init method. It actually only requires a few lines of code, but is a bit unintuitive.

init() {
let colored = UINavigationBarAppearance()
colored.backgroundColor = UIColor(Color.accentColor)
UINavigationBar.appearance().scrollEdgeAppearance = colored
UIBarButtonItem.appearance().tintColor = .white
}

The final line is for setting the text color of the back button. The color of the navigationBarItems can be set by directly setting the foreground color of the Images.

Niagara Border Crossing updated for iOS

The Niagara Border Crossing app has been updated to version 2.1 for iOS, matching the update released for Android and Windows earlier this month.

This new version fixes a bug with retrieving the wait time data, and also improves support for the newest iOS features and screensizes. Additionally the app is also now available to be downloaded on Macs with a M1 series processor.

About Niagara Border Crossing

This app shows the current wait times for all four of the border crossings over the Niagara River between the United States and Canada. These bridges between Western New York and Southern Ontario include the Lewiston-Queenston Bridge, the Whirlpool Rapids Bridge, the Rainbow Bridge, and the Peace Bridge. Separate times are shown for cars, trucks, and also for those using the Nexus lanes.

Links & Information

icon480

Niagara Border Crossing updated for Android and Windows

The Niagara Border Crossing app has been updated to version 2.1 for Android and Windows. This new version fixes a bug with retrieving the wait time data, and also improves support for the newest OS versions.

About Niagara Border Crossing

This app shows the current wait times for all four of the border crossings over the Niagara River between the United States and Canada. These bridges between Western New York and Southern Ontario include the Lewiston-Queenston Bridge, the Whirlpool Rapids Bridge, the Rainbow Bridge, and the Peace Bridge. Separate times are shown for cars, trucks, and also for those using the Nexus lanes.

Links & Information

icon480