Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25310

iOS 11: Add the ability to change the Search Bar Size

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Not Our Bug
    • Affects Version/s: Release 6.2.0
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:

      Description

      I notice that when building with Xcode 9 / iOS 11, the SearchBar is significantly larger.

      Is there a way we can control this? Or get it to retain the size it was in iOS 10?

      I am not sure if this is what is meant to happen as part of iOS 11 and we are given no choice. Or if it is something that we can actually control somehow.

      Attached is a screenshot showing the difference. Same code using the 6.2.0 SDK. The left size is built using Xcode 8.3.3 and iOS 10.3. The right side is build using Xcode 9 and iOS 11. Notice that not just the height has changed but also the position of the search icon and hint text as well. It is the height that concerns me the most as it is a lot of vertical space being used now.

      From a comment on StackOverflow it seems you may be able to control the height. Is this something we can do in Ti?
      https://stackoverflow.com/questions/46037928/ios-11-uisearchbar-in-navigation-bar

      Overall just wanted to share the observation and see what options we have.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mdelmarter Matthew Delmarter
            • Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration