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

iOS: Be able to specify parameters (weight, size) in SFSymbols API

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 10.1.0
    • Component/s: iOS
    • Labels:
      None

      Description

      As a developer, I want to be able to specify weight and size of the SFSymbols API. Also, currently, system images cannot be used in the navigation-bar. The following test case should work:

      const win = Ti.UI.createWindow({
          backgroundColor: '#fff'
      });
       
      const nav = Ti.UI.createNavigationWindow({ window: win });
       
      const btn = Ti.UI.createButton({
          image: Ti.UI.iOS.systemImage('greetingcard')
      });
       
      btn.addEventListener('click', alert);
       
      win.add(Ti.UI.createButton({
          image: Ti.UI.iOS.systemImage('greetingcard', { weight: 'heavy', size: 60 }),
          tintColor: '#fff',
          width: 100,
          height: 100,
          backgroundColor: 'red'
      }));
       
      win.rightNavButton = btn;
      nav.open();
      
      

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              hknoechel Hans Knöchel
              Reviewer:
              Vijay Singh
            • Watchers:
              3 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