Add CastIcon to a ViewController or NavigationBar by making the cast button's hit region bigger without making the cast button image itself larger
- When CastButton's hit region needs bigger
- Step 1 - Subclass the VZBCastButton and override the backgroundRect as shown in the
2-VizbeeCastButton.swift
snippet - Step 2 - Add VizbeeCastButton to the NavigationBar as shown in the
3-InstructionsToAddVizbeeCastButtonToNavigationbar.swift
snippet - Step 2.1 - Add VizbeeCastButton to the UIView as shown in the
4-InstructionsToAddVizbeeCastButtonToUIView.swift
snippet