11/10/2022 0 Comments Robinhood app wiki![]() Default is `5` (scale to 5 times bigger before disappear) public var glowingIndicatorBackgroundScaleEffect: CGFloat = 5 public var glowingIndicatorDelayBetweenGlow: Double = 0.5 public var glowingIndicatorGlowAnimationDuration: Double = 0.8 /// Use laser stroke mode to plot lines. public var segmentSelectionAnimationDuration: Double = 0.1 /// Scale the fading background of glowing indicator to specified value. public var opacityOfUnselectedSegment: Double = 0.3 /// Animation duration of opacity on select/unselect a segment. public var relativeYForStraightLine: CGFloat = 0.5 /// Opacity of unselected segment. Default is 0.5 which draws a line at the middle. Default is `1.5` public var plotLineWidth: CGFloat = 1.5 /// If all values are equal, we will draw a straight line. Default is `8.0` public var glowingIndicatorWidth: CGFloat = 8.0 /// Line width of the line plot. not `radius`, but rather `glowingIndicatorWidth = 2*radius`). / Width of the rectangle holding the glowing indicator (i.e. Play around with the example app to see possible customizations and the Robinhood-style view shown in the demo. Customize animation duration, glowing size, labels etc.Support drag interaction, highlight active segment.The blurry effect is clipped off at the edge of the plot frame with drawingGroup().Laser mode is unresponsive to segment highlighting.Indicator label must stick at the edge of plot.This is just an attempt to replicate its UI and I don't own any of this design.ĭemo stock API is from Alphavantage. Of course this is not, in anyway, affiliated with Robinhood officially. Looking for how to do the moving price label effect? Another repo here. Line plot like in Robinhood app, in SwiftUI ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |