Skip to content

SendbirdAIAgentMessenger-v0.10.10

Latest
Compare
Choose a tag to compare
@tezpark tezpark released this 09 Sep 09:37
c776dca

Public API Changes

  • Exposed contentAlignment property in SBAConfig.ConversationList.Header and SBAConfig.Conversation.Header as public
    • Allows external customization of header content alignment in conversation and conversation list modules
  • Font properties are now public
    • Several font-related properties and accessors were changed to public, allowing external modules to read and modify font settings
  • FontFamily is now exposed
    • The FontFamily type and relevant configuration points are now public for broader customization

Features

  • Introduced alignment customization for conversation headers - Developers can now set header alignment to leading, center, or trailing via configuration

Bug Fixes

  • Fixed layout issues for centered header content - Ensures headers properly center their content when configured
  • Resolved inconsistencies in header padding and spacing - Unified constants and logic for more predictable UI presentation
  • Theme synchronization fix
    • Resolved issues where font or theme changes in DefaultTheme and MessengerInfo were not properly synced
  • Markdown bullet point syntax alignment issue fix
    • Fixed an issue where Markdown bullet points were centered within the entire content

How to Customize Fonts

You can customize fonts in the following ways:

  1. Using Public Properties

    • Access and set font properties directly on SBAFont:
    SBAFontSet.h1 = UIFont.systemFont(ofSize: 20, weight: .bold)
    SBAFontSet.h2 = UIFont.systemFont(ofSize: 18, weight: .semibold)
    SBAFontSet.body1 = UIFont.systemFont(ofSize: 16, weight: .regular)
    SBAFontSet.button1 = UIFont.systemFont(ofSize: 16, weight: .bold)
    SBAFontSet.caption1 = UIFont.systemFont(ofSize: 12, weight: .medium)     
  2. FontFamily Customization

    • Assign a new FontFamily to global fontSet:
    // Set font family globally for all fonts
    SBAFontSet.fontFamily = "Avenir"