algolia / voice-overlay-ios

🗣 An overlay that gets your user’s voice permission and input as text in a customizable UI
https://alg.li/voice
MIT License
544 stars 62 forks source link

How to remove "subtitleBulletLabel" from recording screen? #9

Closed vijaykharage closed 5 years ago

vijaykharage commented 5 years ago

Hi, Tried removing subtitleBulletLabel from RecordingViewController but it is not getting off. Can you please tell me how to remove it? Thanks

spinach commented 5 years ago

Hey @vijaykharage,

You should set those to empty:

  /// Subtitle shown at the top of the screen before the recording button is activated.
  public var subtitleInitial = "Say something like:"

  /// The bullet point shown for each item in the list of suggestions
  public var subtitleBullet = "\u{2022}"

  /// The list of query suggestions shown in a bullet list
  public var subtitleBulletList = ["\"iphone case\"", "\"Running shoes\""]
vijaykharage commented 5 years ago

It's not working. screen shot 2018-11-30 at 4 10 50 pm

Even though removing them completely from RecordingViewController they appear in recording screen out of nowhere.

spinach commented 5 years ago

In your viewController, if you do the following, it should work. I just tested it out.

    voiceOverlayController.settings.layout.inputScreen.subtitleInitial = ""
    voiceOverlayController.settings.layout.inputScreen.subtitleBullet = ""
    voiceOverlayController.settings.layout.inputScreen.subtitleBulletList = []

image