title: Animating the width of UISearchBar frame
body: <p>Is it possible to animate the frame width of a UISearchBar? I find when I apply uiview animations to widen the bounds of a search bar it pops immediately to the final result as if the object internally is assuming control of how it animates and not allowing me to apply my own animations to it smoothly.</p>
  
  <p>If I animate the position it moves smoothly, but I suspect the fact that the text input adjusts according to the presence of the cancel button might mean we don't have public access to animate the width through UIView animation. The sample snippet below slides the bar from x = 0 to 100 but pops the width to 600 pixels wide.</p>
  
  <pre><code>CGRect searchBarFrame = self.searchViewController.searchBar.frame;
  searchBarFrame.origin.x = 100;
  searchBarFrame.size.width = 600;
  [UIView animateWithDuration:1.0 
                        delay:0.0 
                      options:0 
                   animations:^{
                       self.searchViewController.searchBar.frame = searchBarFrame;
                   }
                   completion:^(BOOL completion){
                   }];
  </code></pre>