<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tony Wilson jesuraj on Medium]]></title>
        <description><![CDATA[Stories by Tony Wilson jesuraj on Medium]]></description>
        <link>https://medium.com/@tonywillson?source=rss-df737f6f406d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*ejI71GljXpXu1pSuexVIhg.jpeg</url>
            <title>Stories by Tony Wilson jesuraj on Medium</title>
            <link>https://medium.com/@tonywillson?source=rss-df737f6f406d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 19:07:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tonywillson/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Code Magic in Elephas ✨]]></title>
            <link>https://tonywillson.medium.com/code-magic-in-elephas-37aabcc2775d?source=rss-df737f6f406d------2</link>
            <guid isPermaLink="false">https://medium.com/p/37aabcc2775d</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[swi̇ft]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Tony Wilson jesuraj]]></dc:creator>
            <pubDate>Fri, 12 Jan 2024 04:40:15 GMT</pubDate>
            <atom:updated>2024-01-12T04:40:15.818Z</atom:updated>
            <content:encoded><![CDATA[<h4>AI Assist from Elephas while coding</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QJ7ljjzVX8P5XEnSr_-aqg.png" /></figure><p><strong>Welcome to the AI Era: Use AI Before It Starts Using You.</strong><br>So today we will cover how to use Elephas for coding with Snippets helps. We will cover below points, in short and smooth</p><ol><li>What is Elephas?</li><li>Crafting Snippets with Elephas (How to create the Snippets for coding)</li><li>Receiving Assistance from Snippets for your code🧩.</li></ol><h4>What is Elephas?</h4><p><a href="https://elephas.app/">Elephas</a> <a href="https://elephas.app/">is a personal AI writing assistant for Mac. Let’s explore how to use it for coding. This feature is just one small part of Elephas — there’s much more to discover within this tool.</a></p><p>Elephas is exclusively designed for users who use Mac operating systems.</p><h4>Crafting Snippets with Elephas for coding</h4><p>In Elephas go for preference window, and snippets</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mj7mWQYkfLLIgfTdqosJBA.png" /></figure><p>I am in the process of generating snippets to fix any typographical errors in my code. This includes correcting function names, class names, and variables. (Because I tend to make this mistake quite frequently 😜).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6rdcI_iEAZuI8M1gnpL1aQ.png" /></figure><p>You have the freedom to choose the title as you wish. <br>For the instructions, I have used the following prompt (You can develop your own prompt according to your preferences)</p><blockquote><strong>This will be code selection. Always check for any typo mistake for class name, variables, and function and fix it.<br>No need any explain just replace the typo fixes.</strong></blockquote><p>The brain and tones are even more advanced. Let’s talk about them in a separate blog. <strong>Another great advantage in Elephas is that it supports our own shortcuts, making it very convenient to use.</strong></p><p>Save and head over to your code editor. Let the magic begin!</p><h4>Receiving Assistance from Snippets for your code</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*VGALqB-V_R9CYgJENugO7Q.png" /></figure><p>in code. The word “mianView” should actually be “mainView”.</p><p><strong>Step-1-select the code</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9NMJ9zhGwfqGit7fohCRKA.png" /></figure><p><strong>Step-2- From top icon select the snippets section from that select the snippets which you want. (Or use your shortcuts)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j4E6MwQIl62hd8fGmfDGWw.png" /></figure><p><strong>Step-3- Elephas Magic</strong></p><p>Now the typo automatically get replaced my correct one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tS4c-eHbmLpE1ZiFcVTHbA.png" /></figure><p>So, that’s all there is to it! It’s really easy to create and use.</p><p>With this, we can create multiple snippets to update our code according to swiftLint rules or to optimise the code or code to delete the database too 😇.<strong>Just give a prompt and Elephas will handle the rest.</strong></p><p>Nanri vanakkam 🙏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37aabcc2775d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple animation in swiftUI]]></title>
            <link>https://tonywillson.medium.com/simple-animation-in-swiftui-89c1a202bbac?source=rss-df737f6f406d------2</link>
            <guid isPermaLink="false">https://medium.com/p/89c1a202bbac</guid>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[animation]]></category>
            <dc:creator><![CDATA[Tony Wilson jesuraj]]></dc:creator>
            <pubDate>Wed, 22 Mar 2023 08:44:02 GMT</pubDate>
            <atom:updated>2023-03-22T08:44:02.777Z</atom:updated>
            <content:encoded><![CDATA[<h4>Let’s move the line using swiftUI</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J-Hwon9pu5Z_ByboKGDaQg.gif" /></figure><p>In this I just tried to animate the line in simple way</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*aRmoQCPP_ol4HNE8hTI-XA.png" /></figure><p>let me break step by step</p><ol><li><strong>Creating a line using VStack and Divider</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*DYnHVn7WGbNIOI_qPR-Nig.png" /></figure><p>2. <strong>Using onAppear to perform animation after view loaded</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*lh-9rFzjGlQVXZhqMPIIrg.png" /></figure><p><strong>3. SwiftUI animation will take care we just need to update the values which we need</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*JC38Gy8RL-OzvY_bXS2BqQ.png" /></figure><p><strong>4. This Looping function does updating values for state varibales</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*26G8rnUozmrXrpwH5FuGyg.png" /></figure><p>Any better way? please let me know in command. <br>Nanri vanakkam 🙏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89c1a202bbac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gestures in SwiftUI]]></title>
            <link>https://tonywillson.medium.com/gestures-in-swiftui-52573cdb62b2?source=rss-df737f6f406d------2</link>
            <guid isPermaLink="false">https://medium.com/p/52573cdb62b2</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[gesture-recognition]]></category>
            <category><![CDATA[ios-apps]]></category>
            <dc:creator><![CDATA[Tony Wilson jesuraj]]></dc:creator>
            <pubDate>Tue, 26 Jul 2022 12:56:11 GMT</pubDate>
            <atom:updated>2022-07-26T12:56:11.335Z</atom:updated>
            <content:encoded><![CDATA[<h4>Just collect all the Gestures codes here</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E3UlLYBM93l0RQ603r8xXw.png" /></figure><p>What are Gestures types available in swiftUI</p><ul><li><strong>onTapGesture</strong></li><li><strong>onLongPressGesture</strong></li><li><strong>highPriorityGesture</strong></li><li><strong>simultaneousGesture</strong></li><li><strong>DragGesture</strong></li></ul><h4><strong>onTapGesture</strong></h4><p>onTapGesture will triggered when tap happened</p><pre>Text(&quot;Hello, World!&quot;)<br>    .onTapGesture() {<br>        print(&quot;tapped!&quot;)<br>    }</pre><p>Output when tapped on Hello, world! Text</p><pre>tapped!</pre><h4>Double tap Gesture</h4><p>We just adding some count in onTapGesture , so it will triggered when we tap == the count</p><pre>Text(&quot;Hello, World!&quot;)<br>    .onTapGesture(count: 2) {<br>        print(&quot;Double tapped!&quot;)<br>    }</pre><p>Output when tapped on Hello, world! Text</p><pre>Double tapped!</pre><h4><strong>onLongPressGesture</strong></h4><p>Will triggered when we doing a long press.</p><pre>Text(&quot;Hello, World!&quot;)<br>    .onLongPressGesture {<br>        print(&quot;Long pressed!&quot;)<br>    }</pre><p>Output when long pressed on Hello, world! Text</p><pre>Long pressed!</pre><p>We can also add some long press timing.</p><pre>Text(&quot;Hello, World!&quot;)<br>    .onLongPressGesture(minimumDuration: 2) {<br>        print(&quot;Long pressed!&quot;)<br>    }</pre><p>And to know the long press process</p><pre>Text(&quot;Hello, World!&quot;)<br>    .onLongPressGesture(minimumDuration: 1) {<br>        print(&quot;Long pressed!&quot;)<br>    } onPressingChanged: { inProgress <strong>in</strong><br>        print(&quot;In progress: \(inProgress)!&quot;)<br>    }</pre><h4><strong>HighPriorityGesture</strong></h4><p>When we tapped on below code, text tapped only will be the output VStack tapped will not get called. so to over come this case, we using <strong>HighPriorityGesture</strong></p><pre><strong>struct</strong> ContentView: View {<br>    <strong>var</strong> body: <strong>some</strong> View {<br>        VStack {<br>            Text(&quot;Hello, World!&quot;)<br>                .onTapGesture {<br>                    print(&quot;Text tapped&quot;)<br>                }<br>        }<br>        .onTapGesture {<br>            print(&quot;VStack tapped&quot;)<br>        }<br>    }<br>}</pre><p>output</p><pre>Text tapped</pre><p>To over come, we can use</p><pre><strong>struct</strong> ContentView: View {<br>    <strong>var</strong> body: <strong>some</strong> View {<br>        VStack {<br>            Text(&quot;Hello, World!&quot;)<br>                .onTapGesture {<br>                    print(&quot;Text tapped&quot;)<br>                }<br>        }<br>        .highPriorityGesture(<br>            TapGesture()<br>                .onEnded { <strong>_</strong> <strong>in</strong><br>                    print(&quot;VStack tapped&quot;)<br>                }<br>        )<br>    }<br>}</pre><p>And output is</p><pre>VStack tapped</pre><p>If sometime we need both to triggered we will go with <strong>simultaneousGesture</strong></p><pre><strong>struct</strong> ContentView: View {<br>    <strong>var</strong> body: <strong>some</strong> View {<br>        VStack {<br>            Text(&quot;Hello, World!&quot;)<br>                .onTapGesture {<br>                    print(&quot;Text tapped&quot;)<br>                }<br>        }<br>        .simultaneousGesture(<br>            TapGesture()<br>                .onEnded { <strong>_</strong> <strong>in</strong><br>                    print(&quot;VStack tapped&quot;)<br>                }<br>        )<br>    }<br>}</pre><p>output</p><pre>Text tapped</pre><pre>VStack tapped</pre><h4><strong>DragGesture</strong></h4><p>Will trigger while dragging or swiping in the view.</p><pre>.gesture(<br>    DragGesture()<br>        .onChanged { gesture <strong>in</strong><br>            print(gesture)<br>        }<br>        .onEnded { gesture <strong>in<br>            </strong>print(gesture)<br>       }<br>)</pre><p>onChanged is while dragging, onEnded while drag is ended.</p><p>If any mistake or you need to shout me, comments session in always opened</p><p>Nanri vanakkam 🙏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52573cdb62b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Property Wrapper In Swiftui]]></title>
            <link>https://tonywillson.medium.com/property-wrapper-in-swiftui-3f405682f0f2?source=rss-df737f6f406d------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f405682f0f2</guid>
            <category><![CDATA[property-wrapper]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Tony Wilson jesuraj]]></dc:creator>
            <pubDate>Fri, 22 Jul 2022 12:49:34 GMT</pubDate>
            <atom:updated>2022-07-22T12:49:34.087Z</atom:updated>
            <content:encoded><![CDATA[<h4>Helping while passing data in between views</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqkH6JBbKyfJD9ZYJ0g5zQ.png" /></figure><p>They are 3 property wrapper in swiftui, which so helpful to developer.</p><ul><li>State</li><li>Binding</li><li>Environment Object</li></ul><p>In this blog we will see about State and Binding</p><h3>State in swiftui</h3><p>swiftui fully play with <strong>Struct</strong> , thats great but sad part is like variables in struct are immutable. To overcome it, we have many ways and <strong>@State</strong> is one of the best way to do.</p><p>Basically <strong>@State</strong> helps to make the immutable variables into mutating variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*xLWMiaNRFHUpABGIC-969Q.png" /></figure><p>So now i can change the <strong>var a</strong> value anywhere and it will also change.</p><p>Other best part of <strong>@State and Struct</strong> is, if im using <strong>var a</strong>anywhere in UI part and changing it. Struct will automatically send a notification to swiftui and that ui part will updated.</p><blockquote>Additional information</blockquote><p>When we declare a variable with <strong>@state</strong> , memory of that variable will be saved separately (Example like a global)</p><h3>Binding in swiftui</h3><blockquote>Imagine</blockquote><p>We have two views called <strong>view1</strong>and <strong>view2</strong> . sending data from <strong>view1</strong> to <strong>view2</strong> and changing that data value in <strong>view2</strong>and now we wanted that changed data to affect in <strong>view1</strong> UI too as soon as data have been change.</p><p>So we need read and writing at same . don&#39;t worry this stuff all will be handled my swiftui Binding itself. Just we need to do is <strong>bind</strong> the <strong>state</strong> value and send from <strong>view1</strong> to <strong>view2</strong> thats it.</p><h4>Example</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*g42-WLP1mCNb33CJCsbvnQ.png" /></figure><p>So in view we have state variable and just displaying in a text</p><p>and binding that state variable with view2 and passing to view2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*BWzhnpfQgf9lqdDIuXn7NA.png" /></figure><p>In <strong>view2</strong>we declared a variable with Binding. So whenever we changing that variable in <strong>view2</strong> , <strong>view1</strong> variable will also affected and update in UI.</p><p>This is small stuffs about Property Wrapper in swiftui. Keep this untill we meet again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*R0_u5bad6c_ChikMY4n0Gw.png" /></figure><p>If any mistake or you need to shout me, comments session in always opened</p><p>Nanri vanakkam 🙏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f405682f0f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Some View in swiftUI]]></title>
            <link>https://tonywillson.medium.com/some-view-in-swiftui-fe9c82fbf8a6?source=rss-df737f6f406d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe9c82fbf8a6</guid>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Tony Wilson jesuraj]]></dc:creator>
            <pubDate>Fri, 22 Jul 2022 11:35:15 GMT</pubDate>
            <atom:updated>2022-07-22T11:35:15.520Z</atom:updated>
            <content:encoded><![CDATA[<h4>Keyword “some” in swiftUI</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5-gKaeaCskW2hgVo8ha5KA.png" /></figure><blockquote>Unnoticed parts</blockquote><p>This blog is about why we putting <strong>some view</strong> in body of view in swiftUI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*91Z4-0tHlT2lqjE7WHKisw.png" /></figure><p>This <strong>var body</strong> going to return a view which might contain VStack, HStack, ZStack or any Text. So Something inside a view which going to be return. Thats why only adding <strong>some</strong> keyword.</p><h4>For Example</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/1*Pk6NlW0UfCUtbMFvM9oWDQ.png" /></figure><p>In this <strong>var body</strong> declared as <strong>Text, </strong>so only text we can return and we no need of <strong>some</strong> keyword before the <strong>Text .</strong></p><p>When we try to run with view and without <strong>some</strong> keyword</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VM8BmhZlLr4T6JBJkqz9ow.png" /></figure><p>We will get some error like this</p><p>when we add <strong>some</strong> keyword with it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*cthG60EL91HF2CxJHfCluw.png" /></figure><p>It will not show any error</p><p><strong>Simply</strong> - <strong>some view</strong>is highlighting any view combination of views will be inside it. Thats it</p><p>If any mistake or you need to shout me, comments session in always opened</p><p>Nanri vanakkam 🙏</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe9c82fbf8a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Functions in dart]]></title>
            <link>https://tonywillson.medium.com/functions-in-dart-65d2ee38f23e?source=rss-df737f6f406d------2</link>
            <guid isPermaLink="false">https://medium.com/p/65d2ee38f23e</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Tony Wilson jesuraj]]></dc:creator>
            <pubDate>Thu, 18 Nov 2021 13:42:54 GMT</pubDate>
            <atom:updated>2021-11-18T13:42:54.856Z</atom:updated>
            <content:encoded><![CDATA[<h4>Dart for beginners part - 4</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9SsE_A9LxFg1f6J4jKmOmg.png" /></figure><p>This blog will help you to recall or will let you known about functions in dart</p><h4>Why function</h4><ul><li>Functions allow the same piece of code to run multiple times.</li><li>Functions break long programs up into smaller components, so easy to understand</li></ul><h4>Creating function with parameter</h4><pre>void add() {<br>  print (1 + 2);<br>}</pre><p>And for calling it</p><pre>void main() {<br>  add();<br>}</pre><pre>void add() {<br>  print (1 + 2); <strong>// 3</strong><br>}</pre><h4>Functions with arguments</h4><pre>void main() {<br>  add(1,2);<br>}</pre><pre>void add(int a, int b) {<br>  print (a + b); <strong>// 3</strong><br>}</pre><p>or</p><p>Calling with arguments name</p><pre>void main() {<br>  print(add(a: 1,b: 2));<br>}</pre><pre>int add({int <strong>a = 0</strong>, int <strong>b = 0</strong>}) {<br>  return a + b;<br>}</pre><p><strong>a=0</strong> and <strong>b=0</strong> is assigning value for null safety. so if not passed any parameters also code will run. To make arguments compulsory need to use <strong>required like</strong></p><pre>void main() {<br>  print(add(a: 1,b: 2));<br>}</pre><pre>int add({<strong>required </strong>int a, <strong>required </strong>int b}) {<br>  return a + b;<br>}</pre><p><strong>Function with return</strong></p><pre>void main() {<br>  print(add(1,2));<br>}</pre><pre><strong>int</strong> add(int a, int b) {<br>  <strong>return a + b;</strong><br>}</pre><p>need to mention the data type in front of function name</p><h4>Anonymous function</h4><p>Its like variable as function</p><pre>final sayHi = (name) =&gt; &#39;Hi, $name&#39;;<br>print(sayHi(&quot;Aron&quot;)); // Hi, Aron</pre><p>Upcoming codes are higher order functions</p><h4>Map method</h4><pre>final list = [1,2,3,3,3];<br>  final value = list.map((x) {<br>    return x * 10;<br>  });<br>  print(value.toList()); <strong>// [10, 20, 30, 30, 30]</strong></pre><h4>forEach method</h4><p>its like a easy for loop</p><pre>final list = [1,2,3,3,3];<br>list.forEach((value) =&gt; print(value));</pre><p>or</p><pre>final list = [1,2,3,3,3];<br>  list.forEach((value) {<br>    print(value);<br>  });</pre><h4>Where method</h4><p>here, if <strong>value % 2 == 0</strong> if the condition is true will return the value</p><pre>final list = [1,2,3,3,4];<br>final evenList = list.where((value) =&gt; value % 2 == 0);<br>print(evenList); // (2,4)</pre><h4>Reduce method</h4><p>used to combine all items inside a list and produce a single result (Example: sum of array)</p><pre>final list = [1,2,3,3,3];<br>final sum = list.reduce((value, element) =&gt; value + element);<br>print(sum); // <strong>12</strong></pre><p>here <strong>value</strong> will have add on sum and element iterate the list like 1,2,3,3,3…</p><p>If any mistake or you need to shout me, comments session in always opened</p><p>நன்றி வணக்கம்</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=65d2ee38f23e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Null safety in dart]]></title>
            <link>https://tonywillson.medium.com/null-safety-in-dart-9e4a371d8f52?source=rss-df737f6f406d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e4a371d8f52</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[null-safety]]></category>
            <dc:creator><![CDATA[Tony Wilson jesuraj]]></dc:creator>
            <pubDate>Wed, 03 Nov 2021 09:12:47 GMT</pubDate>
            <atom:updated>2021-11-03T09:12:47.398Z</atom:updated>
            <content:encoded><![CDATA[<h4>Nil from backend developer to irritated frontend developer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ob_daGjJ2h_0X9JxzLaKsw.png" /></figure><p>Okay sometime we itself create some nil, not only from backend</p><h4>Why Null safety ?</h4><p>sometime while loading <strong>nil</strong> or <strong>null</strong> data in app, App will crash. To avoid it <strong>null safety</strong> is important</p><p>so in this blog we will discuss about null safety in flutter</p><h4>When will null affect the code</h4><pre>int? a;<br>print(a); // null</pre><p>above code will not create any error. But below code will.</p><pre>// (Note this code will not run)<br>int? a;<br>int? b = 2;<br>print(b); // 2<br>print(a); // null<br><strong>print(a + b); // error </strong></pre><p>So when we trying to do something with null our code will crash</p><h4>Null safety in flutter</h4><p>Null safety can done in more ways</p><ul><li><strong>With if condition</strong></li><li><strong>Assertion operator(!)</strong></li><li><strong>if null operator (??)</strong></li></ul><h4>With if condition</h4><p>its like avoiding the line with if condition</p><pre>int? a;<br>int? b = 2;<br>if (a == null) {<br>  print(&quot;a is null&quot;); <strong>// a is null</strong><br>} else {<br>  print(a + b);<br>}</pre><p>this is one type of avoiding null. But free advise don’t do with this type</p><h4><strong>Assertion operator(!)</strong></h4><p>use <strong>!</strong> when you sure value is not null</p><p>Example</p><pre>int? a;<br>  int? b = 2;<br>  if (b == 2) {<br>    a = 2;<br>  }<br>  print(<strong>a!</strong> + b);</pre><p>Here we assigned <strong>a = 2</strong> so we can use <strong>! </strong>. If not<strong> </strong>code will crash</p><pre>int? a;<br>int? b = 2;<br>if (b != 2) {<br>  a = 2;<br>}<br>print(<strong>a!</strong> + b); <strong>// code will crash here</strong></pre><p><strong>(Note: use this when your sure that value is not null)</strong></p><h4><strong>If null operator (??)</strong></h4><p>one of the safest way to handle null safety.</p><p>Here will assign any default value, if the value is null</p><p>Example</p><pre>int? a;<br>int? b = 2;<br>print(<strong>(a ?? 0 </strong>) + b); // 2</pre><p>Here the operator will check for null, If it is null, it will assign 0 (as i assigned 0 as default)</p><p><strong>a</strong> is variable. <strong>??</strong> if for checking value. <strong>0 </strong>The default value you want</p><blockquote>Free advice use this method for your null safety</blockquote><pre>int? a;<br>int? b = 2;<br>a ??= 0;<br>print(a + b); // 2</pre><p>we can also handle like <strong>a ??= 0 . </strong>This method is like checking and assigning using ternary operator.</p><p>Same like for other data type to.</p><p>If any mistake or you need to shout me, comments session in always opened</p><p>நன்றி வணக்கம் || Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e4a371d8f52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Basic operation of Array in dart]]></title>
            <link>https://tonywillson.medium.com/basic-operation-of-array-in-dart-f1dc0ad6cf13?source=rss-df737f6f406d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1dc0ad6cf13</guid>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Tony Wilson jesuraj]]></dc:creator>
            <pubDate>Mon, 01 Nov 2021 05:15:16 GMT</pubDate>
            <atom:updated>2021-11-01T05:15:16.132Z</atom:updated>
            <content:encoded><![CDATA[<h4>Dart for beginners part - 2</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g_byzPsp0oDfZGWZsNyYkQ.png" /></figure><p>This blog will cover some basic concept of Array and sets in dart</p><blockquote><a href="https://medium.com/ivymobility-developers/dart-for-beginners-99e5ab2060b0">Dart for beginners part- 1</a> (about variables)</blockquote><p>basically</p><ul><li>Array is used to represent a collection of values. It can have some duplicate values</li><li>Sets also represent a collection of values. But it cannot have any duplicate value with it</li></ul><h3>Syntax of Sets</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*oAjoKIEuRUlgn6gDgpE2Pw.png" /></figure><p>only <strong>{}</strong> make some difference rest all same like array</p><h3>syntax of Array</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*KtXdIQv8hhFwPWcAvkSDUA.png" /></figure><h4>For getting length of the List</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*XYOXMcu5teKl7Hy5EMmM7A.png" /></figure><h4>For in loop</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*CWZD9AN43-GYRwYTy3rgng.png" /></figure><p>we can use normal for loop to</p><p>Okay let’s get into some basic operation of list</p><h3>Basic operation in list</h3><h4>To find its Empty or not</h4><p><strong>.isEmpty</strong> is used, If list have value will return <strong>False</strong> otherwise <strong>True</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*IsJVdE1vuet06t-k7WqK-Q.png" /></figure><p><strong>.isNotEmpty</strong> is opposite to <strong>.isEmpty</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*Fhmzi7acpBNRGSmInVxSzw.png" /></figure><h4>To print first index value</h4><p><strong>.first</strong> is used</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*sPlDGMzSGsLub3cBHBOjkA.png" /></figure><p>For last <strong>.last</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*D7YbyV7hB1bDQbThjJaZ2g.png" /></figure><blockquote>Note: if array is empty <strong>.first</strong> and <strong>.last</strong> will throw error</blockquote><h4>To add a value</h4><p><strong>.add(&quot;The value want to add&quot;) , </strong>Will append in last</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*Ti7zaK1A6dtw11Ck6uPs-w.png" /></figure><h4>To add in specific place</h4><p>we use <strong>.insert(index, &quot;Value&quot;)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*SJjmotJoBwK5dN17jIXz3w.png" /></figure><p><strong>To remove</strong></p><p><strong>.remove(indexplace)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*GulhGC9VclBEa-dNIEH_3g.png" /></figure><p><strong>To clear all</strong></p><p><strong>.clear()</strong> , will remove all the values in array</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*WQyRRGcsWfUsPIgsgvn4uQ.png" /></figure><h4>To search</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*bg4tY4wbNvUjR1CCNwHP5w.png" /></figure><h4>To get index of specific value</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*DyAJYpUtY0N0m8VRZLHeGg.png" /></figure><p>Last but not least</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*rA-B6WPJJ8SB36g1ugD00w.png" /></figure><p>this Array can also have any data type, Like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t9obQ67G81ukjZ8XXHyHHQ.png" /></figure><p>To avoid these we need to specify the data type while declaring. Like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5QdArIs_NnSV0d00ytjwqw.png" /></figure><h4>concatenating arrays</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*kR4qnVy4ZthtK2tnf2R4YA.png" /></figure><h4>If condition in Array</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3yFI-uuYxMxBvAk7WeBvCw.png" /></figure><p>condition is true so we get Thor inside the array,</p><h4>For loop in the Array</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*FXQPBErRDbxtcbB_pfxViA.png" /></figure><p>If any mistake or you need to shout me, comments session in always opened</p><p>other blogs - <a href="https://medium.com/ivymobility-developers/dart-for-beginners-99e5ab2060b0">dart for beginners</a></p><p>நன்றி வணக்கம் || Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1dc0ad6cf13" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Face Detection in iOS]]></title>
            <link>https://tonywillson.medium.com/face-detection-in-ios-77ccc82fcb68?source=rss-df737f6f406d------2</link>
            <guid isPermaLink="false">https://medium.com/p/77ccc82fcb68</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[facedetection]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[swift-programming]]></category>
            <dc:creator><![CDATA[Tony Wilson jesuraj]]></dc:creator>
            <pubDate>Mon, 25 Oct 2021 04:41:16 GMT</pubDate>
            <atom:updated>2021-10-25T04:41:16.016Z</atom:updated>
            <content:encoded><![CDATA[<h4>To play, in face with vision</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gP-gx4ZqTi5R0Zvlr7Ml0g.png" /></figure><p>In iOS detecting a face from image is very easy with VISION</p><p>Yes vision giving some super power for iOS developers (Like infinity stone).</p><blockquote><a href="https://tonywillson.medium.com/text-recognition-from-image-in-swift-3dd33714b4ba">my other blog detecting text from image using vision</a></blockquote><h4>Step -1</h4><pre><strong>import</strong> Vision</pre><h4>step -2</h4><p>vision need image as <strong>cgimage </strong>so image into cgimage</p><pre><strong>guard</strong> <strong>let</strong> cgImage = yourImage.image?.cgImage <strong>else</strong> {<strong>return</strong> }</pre><h4>step -3</h4><p>request handling with <strong>VNImageRequestHandler .</strong></p><pre><strong>let</strong> handler = VNImageRequestHandler(cgImage: cgImage, options: [:])</pre><pre><strong>do</strong> {</pre><pre><strong>try</strong> handler.perform([request])</pre><pre>} <strong>catch</strong> <strong>let</strong> reqErr {</pre><pre>print(&quot;Error&quot;, reqErr)</pre><pre>}</pre><p><strong>VNDetectFaceRectanglesRequest </strong>will do the rest works</p><pre><strong>let</strong> request = VNDetectFaceRectanglesRequest { (req, err) <strong>in</strong></pre><pre><strong>if</strong> <strong>let</strong> err = err {</pre><pre>print(&quot;Error in Pic&quot;, err)</pre><pre><strong>return</strong></pre><pre>}</pre><pre>req.results?.forEach({ (res) <strong>in</strong></pre><pre><strong>guard</strong> <strong>let</strong> faceObservation = res <strong>as</strong>? VNFaceObservation <strong>else</strong> {<strong>return</strong>}</pre><pre>print(faceObservation.boundingBox)</pre><pre>})</pre><pre>}</pre><p>thats it. Now face <strong>VNFaceObservation </strong>will give the frame of face in the image like (0.4031423330307007, 0.6201969385147095, 0.1809350848197937, 0.15218837559223175)</p><p>with these axis we get where the face take places.</p><p>It will support for multi faces in image too, Thats why we use <strong>foreach</strong></p><p>If any mistake or you need to shout me, comments session in always opened</p><p>நன்றி வணக்கம் || Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77ccc82fcb68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dart for beginners]]></title>
            <link>https://medium.com/ivymobility-developers/dart-for-beginners-99e5ab2060b0?source=rss-df737f6f406d------2</link>
            <guid isPermaLink="false">https://medium.com/p/99e5ab2060b0</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Tony Wilson jesuraj]]></dc:creator>
            <pubDate>Thu, 21 Oct 2021 21:45:46 GMT</pubDate>
            <atom:updated>2021-11-01T05:16:56.957Z</atom:updated>
            <content:encoded><![CDATA[<h4>Step one to become a flutter Developer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bGY3Ykh0H6yQKFMpsgMaOQ.png" /></figure><p>Okay, The step one is learning Dart and understanding dart, So once we step into flutter it will be much easier.</p><blockquote><a href="https://tonywillson.medium.com/basic-operation-of-array-in-dart-f1dc0ad6cf13">part-2 -Basic operation of Array in dart</a></blockquote><blockquote>Hope this blog will help to know about basic of dart or help to recall it</blockquote><p>Dart is static language.</p><h4>1. Always with main()</h4><p>In Dart main() is important, without void main()our code will not run.</p><blockquote>Free advise : use <a href="https://dartpad.dev/">dartpad.dev</a>for running dart</blockquote><p>Always start with</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*QzqvX3YunjL88o0v6uYp0A.png" /></figure><h4>2. Fight with semicolon;</h4><p>The developer’s enemy (semicolon) comes with dart, So don’t forget to put semicolon(;) at the end always</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*QMWXtbl1UZvaY_fRQMAbZg.png" /></figure><p>so just print to print the statements</p><h4>3. Declaring (war) variables</h4><p><strong>3.1 normal type</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*_jR8Q_AI1yCOk_pEexwnWQ.png" /></figure><p><strong>3.2 Type inference. </strong>And also we can declare as var,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*8wXxfrhZ9mLHjjMHFqyGFA.png" /></figure><p>dart will automatically get the data type by assigned value.</p><p><strong>3.3 Final, </strong>final is like declaring variable only for read (we can’t rewrite)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*ibn_y6-t66wSa-leIBwseA.png" /></figure><p><strong>3.4 const</strong> , same like final. advantage is compile time constant and using const is best practice</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*dXrxCCsEKI8_92QCk7Wseg.png" /></figure><p><strong>3.5 Dynamic, </strong>it can be any data type and also we can change the data type like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*WylXH_U8MdzfgXAqY6l4qQ.png" /></figure><p>This is how we declare variables in dart</p><blockquote>Free advise, don’t get confuse. take a breath</blockquote><p>Note: we can use single (‘’) or double (“”)quotes for string</p><h4>4. concat in dart</h4><p>This is joining two variables into one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9cuJ0K2BnSrQHg0maph0Ww.png" /></figure><p>same like for int and other variables</p><h4>5. String fun</h4><p>so to print $ we use \ in front</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*XVgcbnAYwuQsDMDvVCv_5w.png" /></figure><p>and \n for new line</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*KMwjaT82jtEBKIe2npS1hA.png" /></figure><p>And for multiline use &quot;&quot;&quot; &quot;&quot;&quot;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*zpu2PPX8UmAViuc-8gE45g.png" /></figure><h4>To upper case</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*3x3JYrXzaEJ5ce2ZvHTNcA.png" /></figure><h4>To lower case</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*8ukXpAWkvtKNoDml-kHn8Q.png" /></figure><h4>Contains in dart</h4><p>contains will return bool value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*eIrebTtxhbsFWzgKqijuCQ.png" /></figure><p>contains(&#39;The string we want to check&#39;)</p><h4>isEmpty</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*eU85JZV_-2442apCWsO_WQ.png" /></figure><p>.isNotEmpty is opposite for isEmpty</p><h4>replaceAll</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*lDjTpzcWGWncYoCqlJG1Yg.png" /></figure><h4>Int into string</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*sLtR13Jz3F0_00TIXlTb6g.png" /></figure><h4>To String As Fixed</h4><p>like 1.2345 into 1.23 or 1.234</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*acObq7I7doK6nT8WrZl3XQ.png" /></figure><h4>String into double</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*bmwaCh5JjN8jsajS1KDAWA.png" /></figure><h4>.round</h4><p>like 1.322 into 1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*9lthOG9Chh9YyQ6fkMGEkA.png" /></figure><p>and also</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*qYKsclMEzz1q4jTPatyH6w.png" /></figure><h4>6.Ternary access operator</h4><p>its simple dimple</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Fsm81QvvYc_0ogWrn4RyfQ.png" /></figure><p><strong>name == &#39;tj&#39; </strong>so we get <strong>jesuraj </strong>otherwise it will be <strong>wilson</strong></p><p>Covered some dart basics in this blogs.</p><p>To know about arrays in dart click here</p><p>If any mistake or you need to shout me, comments session in always opened</p><blockquote>other blogs - <a href="https://tonywillson.medium.com/basic-operation-of-array-in-dart-f1dc0ad6cf13">arrays in dart</a></blockquote><p>நன்றி வணக்கம் || Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=99e5ab2060b0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ivymobility-developers/dart-for-beginners-99e5ab2060b0">Dart for beginners</a> was originally published in <a href="https://medium.com/ivymobility-developers">IVYMobility TechBytes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>