[TIMOB-16866] iOS Transparency in a backgroundGradient does not provide the expected results
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2017-06-13T22:26:05.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Bert Grantges |
Assignee | Eric Merriman |
Created | 2014-04-18T15:45:35.000+0000 |
Updated | 2017-06-13T22:26:05.000+0000 |
Description
When trying to provide a backgroundGradient that goes from a single solid color to a transparent color the result is a cloudy gray rendering for the transparent color vs just straight transparency.
"#gradient":{
backgroundGradient:{
type:"linear",
startPoint:{x:0,y:0},
endPoint:{x:0, y:"100%"},
colors:[
{color: "#fff", offset: 0.3},
{color: "transparent", offset: 1.0}
]
},
height: 65,
width: Ti.UI.FILL
}
In my case i have a white background for a TableSectionView and I want the TableViewRow to fade into the section as its scrolled up.
Expectation is that since i am on a white background, i should only see white and the tableViewRow should slowly fade up on scroll
Actual Results
As noted in the screenshot, i get a gray rendering where the transparency starts.
Attachments
File | Date | Size |
---|---|---|
Screen Shot 2014-04-18 at 10.45.06 AM.png | 2014-04-18T15:45:35.000+0000 | 153856 |
I am unable to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170609091155 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131