<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lalana Chamika</title>
    <description>The latest articles on DEV Community by Lalana Chamika (@lalanachami).</description>
    <link>https://dev.to/lalanachami</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F389814%2Feb14e22f-a50d-4fb1-94d3-f8229048fb84.jpeg</url>
      <title>DEV Community: Lalana Chamika</title>
      <link>https://dev.to/lalanachami</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lalanachami"/>
    <language>en</language>
    <item>
      <title>CandleKit: a native SwiftUI candlestick chart (no WebView)</title>
      <dc:creator>Lalana Chamika</dc:creator>
      <pubDate>Sat, 03 Oct 2026 14:44:16 +0000</pubDate>
      <link>https://dev.to/lalanachami/candlekit-a-native-swiftui-candlestick-chart-no-webview-1odn</link>
      <guid>https://dev.to/lalanachami/candlekit-a-native-swiftui-candlestick-chart-no-webview-1odn</guid>
      <description>&lt;p&gt;Every time I went looking for a candlestick chart for an iOS app, I found the same thing: a WebView wrapping TradingView's widget or some JS charting library. Works fine, but it means your "native" app ships a hidden browser just to draw some rectangles, and it never quite feels like the rest of your UI.&lt;/p&gt;

&lt;p&gt;So I built CandleKit, an open-source candlestick chart for SwiftUI. The goal: make it feel like a control Apple shipped, not a chart library bolted on.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Momentum scrolling and pinch-to-zoom anchored under your fingers&lt;/li&gt;
&lt;li&gt;Long-press crosshair that snaps between candles with a haptic tick&lt;/li&gt;
&lt;li&gt;Live tick updates that redraw without disturbing your scroll position&lt;/li&gt;
&lt;li&gt;Infinite history loading as you scroll back&lt;/li&gt;
&lt;li&gt;Drag the price axis itself to rescale, double-tap to snap back to autoscale&lt;/li&gt;
&lt;li&gt;Dynamic Type, dark mode via system colors, and VoiceOver gets a real Audio Graph (closing prices as pitch) instead of "chart, image"&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The API, boring on purpose
&lt;/h2&gt;

&lt;p&gt;You add it, and you draw it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="kt"&gt;CandlestickChart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;candles&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;indicators&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sma&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ema&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;)])&lt;/span&gt;
    &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;frame&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;360&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Under the hood it's split into two targets. CandleKitCore is pure Foundation, no UI dependencies, so it builds on macOS and Linux too - it holds everything testable: viewport math, autoscaling, series diffing, indicator calculations. CandleKit sits on top and owns the SwiftUI view, the Canvas renderers, and a transparent UIKit view underneath that handles the gesture recognizers. Candles draw as a handful of batched paths, so draw calls don't scale up with however much history is loaded.&lt;/p&gt;

&lt;p&gt;It's 0.1, pre-release. CandleKitCore has full unit test coverage, but the SwiftUI rendering side hasn't been profiled on device yet or snapshot-tested, so treat it accordingly. There's a demo app in the repo if you want to poke at it before wiring it into anything real.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/LalanaChami/CandleKit" rel="noopener noreferrer"&gt;github.com/LalanaChami/CandleKit&lt;/a&gt;. MIT licensed.&lt;/p&gt;

&lt;p&gt;Genuinely want the feedback, especially if you try it on a device I haven't and something feels off. Bug reports, "this API is awkward," whatever, all useful.&lt;/p&gt;

</description>
      <category>swift</category>
      <category>ios</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Web Based Pharmacy Management system (MEAN Stack)</title>
      <dc:creator>Lalana Chamika</dc:creator>
      <pubDate>Sun, 30 Aug 2020 10:08:16 +0000</pubDate>
      <link>https://dev.to/lalanachami/web-based-pharmacy-management-system-mean-stack-3hjp</link>
      <guid>https://dev.to/lalanachami/web-based-pharmacy-management-system-mean-stack-3hjp</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/LalanaChami/Pharmacy-Mangment-System/tree/contributor-branch"&gt;https://github.com/LalanaChami/Pharmacy-Mangment-System/tree/contributor-branch&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🦄 An Open Source MEAN stack web application (Pharmacy Management System)...&lt;br&gt;
Contributions are more than welcome 😍 (Please clone the contributor branch for contributions)&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>angular</category>
      <category>mongodb</category>
      <category>node</category>
    </item>
    <item>
      <title>Java Socket based chat application with SHA-1 hash encryption</title>
      <dc:creator>Lalana Chamika</dc:creator>
      <pubDate>Wed, 24 Jun 2020 17:48:00 +0000</pubDate>
      <link>https://dev.to/lalanachami/java-socket-based-chat-application-with-sha-1-hash-encryption-5a2</link>
      <guid>https://dev.to/lalanachami/java-socket-based-chat-application-with-sha-1-hash-encryption-5a2</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/LalanaChami/Java-Chat-Application-Socket-Java-Swing-GUI-"&gt;https://github.com/LalanaChami/Java-Chat-Application-Socket-Java-Swing-GUI-&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Socket based chat application with a chat client and a chat server. With swing GUI and message encryption in SHA-1 hashing&lt;/p&gt;

</description>
      <category>java</category>
      <category>socket</category>
      <category>chat</category>
      <category>encryption</category>
    </item>
  </channel>
</rss>
