Add `hasAppeared` property to prevent going back to default selected index when SBSegmentedControl disappears.