[TIMOB-28405] iOS: Be able to specify parameters (weight, size) in SFSymbols API
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-08-16T13:58:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 10.1.0 |
Components | iOS |
Labels | n/a |
Reporter | Hans Knöchel |
Assignee | Vijay Singh |
Created | 2021-03-26T12:48:16.000+0000 |
Updated | 2021-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
File | Date | Size |
---|---|---|
Simulator Screen Shot - iPhone 12 Pro - 2021-03-27 at 11.09.49.png | 2021-03-27T10:09:58.000+0000 | 76880 |
PR: https://github.com/appcelerator/titanium_mobile/pull/12665