Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28405] iOS: Be able to specify parameters (weight, size) in SFSymbols API

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2021-08-16T13:58:44.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.1.0
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeVijay Singh
Created2021-03-26T12:48:16.000+0000
Updated2021-08-16T13:58:44.000+0000

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

FileDateSize
Simulator Screen Shot - iPhone 12 Pro - 2021-03-27 at 11.09.49.png2021-03-27T10:09:58.000+000076880

Comments

  1. Hans Knöchel 2021-03-26

    PR: https://github.com/appcelerator/titanium_mobile/pull/12665

JSON Source