New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ios): expose api to use sf images #11050
Conversation
|
# Conflicts: # iphone/Classes/TiAppiOSUserNotificationCenterProxy.m # iphone/Classes/UIModule.m # iphone/iphone/Titanium_Prefix.pch
Co-Authored-By: Jan Vennemann <jan.vennemann@gmx.net>
Co-Authored-By: Jan Vennemann <jan.vennemann@gmx.net>
Co-Authored-By: Jan Vennemann <jan.vennemann@gmx.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@vijaysingh-axway please add a unit test for the new api, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FR Passed: Able to make use of sf images, using the following test case:
var win = Ti.UI.createWindow({
backgroundColor: '#fff'
});
var triangle = Ti.UI.iOS.systemImage('drop.triangle.fill');
var forward = Ti.UI.iOS.systemImage('forward');
var backward = Ti.UI.iOS.systemImage('backward');
var folder = Ti.UI.iOS.systemImage('folder.fill');
var imageView = Ti.UI.createImageView({
width: '150',
height: '150',
image: triangle,
tintColor: 'red'
});
var button = Ti.UI.createButton({
top: 60,
width: 100,
height: 50,
//backgroundImage: folder
image: folder
})
var stepper = Ti.UI.iOS.createStepper({
top: 150,
incrementImage: forward,
decrementImage: backward
});
win.add(button);
win.add(stepper);
win.add(imageView);
win.open();
Test Environment
MacOS Mojave version 10.14.4
Xcode 11 beta 5
Node.js ^8.11.1
iPhone 8 (13.0 Sim)
"NPM":"4.2.14","CLI":"7.1.1-master.2"
Can this be merged please? |
@vijaysingh-axway @janvennemann @ssjsamir There was an issue with device builds, since the EDIT: Another issue was that it doesn't work for var window1 = Ti.UI.createWindow();
var window2 = Ti.UI.createWindow();
var tabGroup = Ti.UI.createTabGroup({
tabs: [
Ti.UI.createTab({ window: window1, title: 'Home', icon: Ti.UI.iOS.systemImage('house'), activeIcon: Ti.UI.iOS.systemImage('house.fill') }),
Ti.UI.createTab({ window: window2, title: 'Settings', icon: Ti.UI.iOS.systemImage('gear'), activeIcon: Ti.UI.iOS.systemImage('gear.fill') })
]
})
tabGroup.open(); |
fix(ios): properly include TiBlob for device builds
Thanks @hansemannn . Merged. |
We also see issues with this when using it in conditional code, even with Alloy.Globals constants. Can you reproduce it in Alloy? |
https://jira.appcelerator.org/browse/TIMOB-27133