<?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 kumaresh babu on Medium]]></title>
        <description><![CDATA[Stories by kumaresh babu on Medium]]></description>
        <link>https://medium.com/@askumareshbabu?source=rss-28be4e233984------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*BBP8lSyiLG5QWUHgBNTVew@2x.jpeg</url>
            <title>Stories by kumaresh babu on Medium</title>
            <link>https://medium.com/@askumareshbabu?source=rss-28be4e233984------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:34:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@askumareshbabu/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[Mastering Linked Lists in Swift: From Theory to Practice]]></title>
            <link>https://blog.stackademic.com/interview-question-linked-lists-d36a0ad5a7bd?source=rss-28be4e233984------2</link>
            <guid isPermaLink="false">https://medium.com/p/d36a0ad5a7bd</guid>
            <category><![CDATA[music-player]]></category>
            <category><![CDATA[linked-list-operations]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[kumaresh babu]]></dc:creator>
            <pubDate>Mon, 25 Mar 2024 05:56:03 GMT</pubDate>
            <atom:updated>2024-03-28T00:21:49.636Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rtrhFDx5YvhwTtvfNnfmfA.png" /></figure><p>Hmm, Let’s first get to know what a LinkedList is, and then we can dive into it deeper.</p><p><strong>Introduction:</strong></p><p>Linked lists are fundamental data structures used in computer science to store and manage collections of elements. In this article, we’ll explore the concept of linked lists, their advantages and disadvantages, and delve into a practical application by implementing a music playlist manager in Swift using linked lists.</p><p><strong>Understanding Linked Lists:</strong></p><p>A linked list is a data structure composed of nodes, where each node contains a value and a reference (or pointer) to the next node in the sequence. Unlike arrays, linked lists do not require contiguous memory allocation, offering dynamic size and efficient insertions and deletions.</p><p>There are different types of linked lists, including:</p><ol><li><strong>Singly Linked List</strong>: Each node contains a value and a reference to the next node in the sequence. The last node points to null, indicating the end of the list.</li><li><strong>Doubly Linked List</strong>: Each node contains a value, a reference to the next node, and a reference to the previous node in the sequence. This allows traversal in both forward and backward directions.</li><li><strong>Circular Linked List</strong>: Similar to a singly or doubly linked list, but the last node points back to the first node (in a circular manner).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NjjWcVp5GCfmZt5m4WuccA.png" /></figure><p>Linked lists offer several advantages and disadvantages:</p><p><strong>Advantages:</strong></p><ul><li>Dynamic size: Linked lists can dynamically grow or shrink as needed, without requiring contiguous memory allocation.</li><li>Efficient insertions and deletions: Adding or removing elements from a linked list typically requires updating only a few pointers, making these operations efficient, especially for large lists.</li><li>Flexibility: Linked lists can easily accommodate different types of insertions and deletions, such as adding elements to the beginning or middle of the list.</li></ul><p><strong>Disadvantages:</strong></p><ul><li>Lack of random access: Unlike arrays, linked lists do not support direct access to elements by index. Traversal must start from the beginning of the list, which can be inefficient for large lists.</li><li>Extra memory overhead: Each node in a linked list requires additional memory to store pointers/references, which can increase memory usage compared to arrays.</li><li>Inefficient cache usage: Due to their non-contiguous memory layout, linked lists may not utilize hardware caching effectively, leading to slower access times compared to arrays for some operations.</li></ul><p>linked lists are a fundamental data structure that offers dynamic size, efficient insertions and deletions, and flexibility in exchange for lack of random access and potentially higher memory overhead. They are commonly used in scenarios where dynamic size or frequent insertions/deletions are required, such as implementing stacks, queues, or adjacency lists in graph algorithms.</p><p><strong>Interview Question: Finding Intersections in Linked Lists:</strong></p><p>To find the intersection of two linked lists in iOS, we can use a simple approach:</p><ol><li>Traverse both linked lists to find their lengths and the tail nodes.</li><li>If the tail nodes are different, they don’t intersect, so return null.</li><li>Set two pointers at the heads of the linked lists.</li><li>Advance the pointer of the longer linked list by the difference in lengths.</li><li>Move both pointers until they meet, which will be the intersection point.</li></ol><p>Sample Code:</p><pre>class ListNode {<br>    var value: Int<br>    var next: ListNode?<br>    <br>    init(_ value: Int) {<br>        self.value = value<br>    }<br>}<br><br>func getIntersectionNode(_ headA: ListNode?, _ headB: ListNode?) -&gt; ListNode? {<br>    var lengthA = 0<br>    var lengthB = 0<br>    var currentA = headA<br>    var currentB = headB<br>    <br>    // Calculate the lengths and find the tail nodes<br>    while currentA != nil {<br>        lengthA += 1<br>        currentA = currentA?.next<br>    }<br>    <br>    while currentB != nil {<br>        lengthB += 1<br>        currentB = currentB?.next<br>    }<br>    <br>    // Reset pointers to the beginning<br>    currentA = headA<br>    currentB = headB<br>    <br>    // Advance the pointer of the longer linked list<br>    var diff = abs(lengthA - lengthB)<br>    if lengthA &gt; lengthB {<br>        for _ in 0..&lt;diff {<br>            currentA = currentA?.next<br>        }<br>    } else {<br>        for _ in 0..&lt;diff {<br>            currentB = currentB?.next<br>        }<br>    }<br>    <br>    // Move both pointers until they meet<br>    while currentA !== currentB {<br>        currentA = currentA?.next<br>        currentB = currentB?.next<br>    }<br>    <br>    return currentA // or currentB, since they point to the same intersection node<br>}</pre><p>You can use this getIntersectionNode function by passing the heads of your two linked lists. If they intersect, it will return the intersection node; otherwise, it will return nil.</p><p><strong>Music Playlist Manager: A Practical Application:</strong></p><p>Imagine building a music playlist manager where each song is represented as a node in a linked list. We can perform various operations like adding, removing, shuffling, and playing songs efficiently using linked lists.</p><ol><li><strong>Creating a Playlist:</strong></li></ol><ul><li>When a user creates a new playlist, an empty linked list is initialized to store the songs.</li></ul><p>2. <strong>Adding Songs to the Playlist:</strong></p><ul><li>When a user adds a song to the playlist, a new node is created for that song.</li><li>If the playlist is empty, the new song node becomes the head of the linked list.</li><li>If the playlist already has songs, the new song node is appended to the end of the linked list.</li></ul><p>3. <strong>Removing Songs from the Playlist:</strong></p><ul><li>When a user removes a song from the playlist, the corresponding node is removed from the linked list.</li><li>If the removed song was the head of the linked list, the head pointer is updated to point to the next node.</li><li>If the removed song was in the middle or end of the linked list, the pointers of the neighbouring nodes are adjusted to bypass the removed node.</li></ul><p>4. <strong>Changing the Order of Songs:</strong></p><ul><li>Users can change the order of songs in the playlist by moving nodes within the linked list.</li><li>This involves adjusting the pointers of neighbouring nodes to insert the moved node at the desired position.</li></ul><p>5. <strong>Playing Songs:</strong></p><ul><li>The playlist manager can play songs sequentially by traversing the linked list from the head to the end.</li><li>After playing a song, the manager moves to the next node in the linked list to play the next song.</li></ul><p>6. <strong>Shuffling Songs:</strong></p><ul><li>Users can shuffle the playlist to play songs in a random order.</li><li>This involves rearranging the nodes in the linked list randomly.</li></ul><p>By using a linked list to manage playlists, the application can efficiently handle dynamic additions, removals, and reordering of songs. Additionally, linked lists provide flexibility in managing the playlist’s size and structure, making them suitable for real-time scenarios where users frequently interact with and modify playlists.</p><p>here’s an example of how you could implement a basic music playlist manager using a singly linked list in Swift:</p><pre>class Song {<br>    var title: String<br>    var artist: String<br>    var next: Song?<br><br>    init(title: String, artist: String) {<br>        self.title = title<br>        self.artist = artist<br>    }<br>}<br><br>class Playlist {<br>    var head: Song?<br><br>    func addSong(title: String, artist: String) {<br>        let newSong = Song(title: title, artist: artist)<br>        if head == nil {<br>            head = newSong<br>        } else {<br>            var current = head<br>            while current?.next != nil {<br>                current = current?.next<br>            }<br>            current?.next = newSong<br>        }<br>    }<br><br>    func removeSong(title: String) {<br>        if head == nil {<br>            return<br>        }<br>        if head?.title == title {<br>            head = head?.next<br>            return<br>        }<br>        var prev: Song? = nil<br>        var current = head<br>        while current != nil &amp;&amp; current?.title != title {<br>            prev = current<br>            current = current?.next<br>        }<br>        prev?.next = current?.next<br>    }<br><br>    func printPlaylist() {<br>        var current = head<br>        while current != nil {<br>            print(&quot;\(current!.title) - \(current!.artist)&quot;)<br>            current = current?.next<br>        }<br>    }<br>}<br><br>// Example usage:<br>let myPlaylist = Playlist()<br>myPlaylist.addSong(title: &quot;Song 1&quot;, artist: &quot;Artist 1&quot;)<br>myPlaylist.addSong(title: &quot;Song 2&quot;, artist: &quot;Artist 2&quot;)<br>myPlaylist.addSong(title: &quot;Song 3&quot;, artist: &quot;Artist 3&quot;)<br><br>print(&quot;Current Playlist:&quot;)<br>myPlaylist.printPlaylist()<br><br>myPlaylist.removeSong(title: &quot;Song 2&quot;)<br><br>print(&quot;\nPlaylist after removing Song 2:&quot;)<br>myPlaylist.printPlaylist()</pre><p>This code defines two classes: Song and Playlist. The Song class represents a song with a title, artist, and a reference to the next song in the playlist. The Playlist class represents the playlist itself and includes methods to add, remove, and print songs.</p><p>You can create a playlist instance, add songs to it, remove songs from it, and print the current playlist. This implementation demonstrates the basic functionality of a music playlist manager using a singly linked list in Swift.</p><p>Thats all!…</p><p>Linked lists are versatile data structures that offer dynamic size and efficient insertions and deletions. By understanding their principles and practical applications, we can leverage them to build efficient and flexible solutions in Swift.</p><p><strong>Feedback and Support:</strong></p><p>If you found this article helpful, please consider leaving feedback or applause. Your support motivates me to create more insightful content tailored to your needs. Happy coding!</p><blockquote>Follow me on :[<a href="https://www.linkedin.com/in/askumareshbabu/"><em>LinkedIn</em></a>]</blockquote><h3>Stackademic 🎓</h3><p>Thank you for reading until the end. Before you go:</p><ul><li>Please consider <strong>clapping</strong> and <strong>following</strong> the writer! 👏</li><li>Follow us <a href="https://twitter.com/stackademichq"><strong>X</strong></a><strong> | </strong><a href="https://www.linkedin.com/company/stackademic"><strong>LinkedIn</strong></a><strong> | </strong><a href="https://www.youtube.com/c/stackademic"><strong>YouTube</strong></a><strong> | </strong><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a></li><li>Visit our other platforms: <a href="https://plainenglish.io/"><strong>In Plain English</strong></a><strong> | </strong><a href="https://cofeed.app/"><strong>CoFeed</strong></a><strong> | </strong><a href="https://venturemagazine.net/"><strong>Venture</strong></a><strong> | </strong><a href="https://blog.cubed.run/"><strong>Cubed</strong></a></li><li>More content at <a href="https://stackademic.com/"><strong>Stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d36a0ad5a7bd" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/interview-question-linked-lists-d36a0ad5a7bd">Mastering Linked Lists in Swift: From Theory to Practice</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VisionOS-Bottom Bar-Ornament]]></title>
            <link>https://blog.stackademic.com/how-to-create-a-bottom-bar-using-ornament-in-visionos-a1e8a93f829b?source=rss-28be4e233984------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1e8a93f829b</guid>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[spacial-computing]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[visionos]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[kumaresh babu]]></dc:creator>
            <pubDate>Fri, 01 Mar 2024 17:26:12 GMT</pubDate>
            <atom:updated>2024-03-28T00:22:00.860Z</atom:updated>
            <content:encoded><![CDATA[<p>We usually design the window with a TabView to display at the bottom on iPhone and on the side on iPad. However, there is no option to bring TabView to the bottom position, yes it sticks to the left side of the window in VisionOS. After doing much research, I finally found the solution to display the bottom view using Ornament, which is introduced in VisionOS. With Ornament, we can customize various options such as showing buttons, text, or any view on the left, right, top, or bottom side, and can change the colour of the ornament view. Okay, let’s stop here and jump into the actual topic of the story now.</p><p>In this article, we will be discussing how to create a bottom bar using the Ornament function in VisionOS.</p><p>This tutorial assumes familiarity with Swift and SwiftUI concepts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xtv8dnuY-yBc5h6BQtaodw.png" /></figure><pre>struct BottomOrnamentBar: View {<br>    @State private var selectedTab = 1<br>    @Environment(ViewModel.self) private var model<br>    let tabs = [&quot;Home&quot;, &quot;Product&quot;, &quot;Bookmarks&quot;, &quot;Settings&quot;, &quot;Account&quot;]<br>    var body: some View {<br>        Text(&quot;Bottom Ornament Bar&quot;)<br>        .ornament(visibility: .automatic, attachmentAnchor: .scene(.bottom), contentAlignment: .center, ornament: {<br>            HStack(spacing: 10) {<br>                ForEach(Array(tabs.enumerated()), id: \.offset) { index, _ in<br>                    Button(action: { selectedTab = index }) {<br>                        Text(tabs[index])<br>                            .font(.caption)<br>                    }<br>                    .buttonStyle(.plain)<br>                    .frame(width: 80, height: 50)<br>                    .padding([.top, .bottom], 5)<br>                }<br>            }<br>            .background(.blue.tertiary)<br>            .glassBackgroundEffect()<br>        })<br><br>        .onDisappear{<br>            model.isBottomOrnamnetBarShowing.toggle()<br>        }<br>    }<br>}</pre><ol><li><strong>Defining Tabs</strong>: The tabs array is defined with five elements, each representing a different tab: “Home”, “Product”, “Bookmarks”, “Settings”, and “Account”.</li><li><strong>Ornament Function</strong>: The ornament function is used to create a custom ornament, which in this case is a bottom bar. The parameters of the function are set as follows:</li></ol><ul><li>visibility: Set to .automatic, which means the ornament will automatically adjust its visibility based on the context.</li><li>attachmentAnchor: Set to .scene(.bottom), which means the ornament will be attached to the bottom of the scene.</li><li>contentAlignment: Set to .center, which means the content of the ornament will be centred.</li></ul><p>3. <strong>Creating the Bottom Bar</strong>: Inside the ornament function, an HStack (horizontal stack) is created with a spacing of 10. This stack will contain the buttons for each tab.</p><p>4. <strong>Creating the Buttons</strong>: The ForEach function is used to iterate over the tabs array. For each tab, a button is created with an action that sets the selectedTab to the current index. The text of the button is set to the name of the tab and the font is set to .caption.</p><p>5. <strong>Styling the Buttons</strong>: Each button is styled with the .plain button style and given a frame with a width of 80 and a height of 50. Padding is added to the top and bottom of each button.</p><p>6. <strong>Styling the Bottom Bar</strong>: The bottom bar is given a tertiary blue background and a glass background effect for a modern, sleek look.</p><p>And that’s it! With this code, you can create a stylish and functional bottom bar using the Ornament function in VisionOS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zK8ZKk47Xdc5wc4ZvvohBg.png" /></figure><p><strong>Conclusion</strong>:</p><p>With the provided code snippet, you can seamlessly integrate a functional and visually appealing bottom bar into your VisionOS app using the Ornament function.</p><p>Explore further customization possibilities to suit your app&#39;s design and user experience needs.</p><p>More information: <a href="https://developer.apple.com/design/human-interface-guidelines/ornaments">https://developer.apple.com/design/human-interface-guidelines/ornaments</a></p><p>If you found the article helpful or insightful, a round of applause would indeed be motivating. Your feedback helps me tailor future content to better meet your needs. Thank you for your support!</p><p>Happy Coding!</p><h3>Stackademic 🎓</h3><p>Thank you for reading until the end. Before you go:</p><ul><li>Please consider <strong>clapping</strong> and <strong>following</strong> the writer! 👏</li><li>Follow us <a href="https://twitter.com/stackademichq"><strong>X</strong></a><strong> | </strong><a href="https://www.linkedin.com/company/stackademic"><strong>LinkedIn</strong></a><strong> | </strong><a href="https://www.youtube.com/c/stackademic"><strong>YouTube</strong></a><strong> | </strong><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a></li><li>Visit our other platforms: <a href="https://plainenglish.io/"><strong>In Plain English</strong></a><strong> | </strong><a href="https://cofeed.app/"><strong>CoFeed</strong></a><strong> | </strong><a href="https://venturemagazine.net/"><strong>Venture</strong></a><strong> | </strong><a href="https://blog.cubed.run/"><strong>Cubed</strong></a></li><li>More content at <a href="https://stackademic.com/"><strong>Stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1e8a93f829b" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/how-to-create-a-bottom-bar-using-ornament-in-visionos-a1e8a93f829b">VisionOS-Bottom Bar-Ornament</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with Generative AI]]></title>
            <link>https://medium.com/@askumareshbabu/getting-started-with-generative-ai-c1867e3f8ab3?source=rss-28be4e233984------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1867e3f8ab3</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[kumaresh babu]]></dc:creator>
            <pubDate>Mon, 19 Feb 2024 10:57:09 GMT</pubDate>
            <atom:updated>2024-02-19T10:57:09.476Z</atom:updated>
            <content:encoded><![CDATA[<p>Generative AI, a subset of artificial intelligence, is revolutionizing various industries by enabling machines to generate new content or ideas. This technology is taking creativity to the next level by creating new artificial content or data that includes images, videos, music, or even 3D models without any effort required by humans. In this article, we will explore the basics of Generative AI and how to get started with learning it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cVSkGodzHyBa-bAui3HTGA.jpeg" /></figure><h3>What is Generative AI?</h3><p>Generative AI, also referred to as GenAI, allows users to input a variety of prompts to generate new content, such as text, images, videos, sounds, code, 3D designs, and other media. It operates on AI models and algorithms that are trained on large unlabeled data sets, which require complex math and lots of computing power to create. These data sets train the AI to predict outcomes in the same ways humans might act or create on their own.</p><h3>Types of Generative AI Models</h3><p>There are several types of generative models that you can learn about:</p><ol><li><strong>Generative Adversarial Networks (GANs)</strong>: GANs involve two neural networks — The Generator and The Discriminator. The Generator generates new data samples, while the Discriminator verifies the generated data.</li><li><strong>Variational Autoencoders (VAEs)</strong>: VAEs follow a different approach compared to GANs. They transform the given input into a different form.</li><li><strong>Autoregressive models</strong>: These models generate sequences by modelling the conditional probability of every individual item in the sequence.</li></ol><h3>How to Get Started with Generative AI</h3><p>Here are some steps to get started with Generative AI:</p><ol><li><strong>Identify a Specific Domain</strong>: To get started with generative AI, it is important to identify a specific domain where it can be used to automate or accelerate tasks, generate ideas, or analyze data.</li><li><strong>Consider the Impact</strong>: Consider the specific personas and job functions that will be impacted by generative AI, and develop a plan for how the technology will be used.</li><li><strong>Learn the Basics</strong>: Understand how large language models form the foundation of generative AI.</li><li><strong>Explore Tools and Platforms</strong>: Familiarize yourself with popular AI generators like ChatGPT and DALL-E2.</li><li><strong>Practice</strong>: The best way to learn is by doing. Start a project, experiment with the tools, and don’t be afraid to make mistakes.</li></ol><p>Here are some resources that can help you learn more about Generative AI:</p><ol><li><strong>Google Cloud Blog — Generative AI Training Resources</strong>: This blog post discusses new training resources for Generative AI provided by Google Cloud. <a href="https://cloud.google.com/blog/topics/training-certifications/new-google-cloud-generative-ai-training-resources">Link</a></li><li><strong>Azure AI Study Guide</strong>: This guide provides a list of Azure’s top free resources for learning Generative AI. <a href="https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/the-ai-study-guide-azure-s-top-free-resources-for-learning/ba-p/4036890">Link</a></li></ol><h3>Conclusion</h3><p>Generative AI is a powerful tool that can help accelerate routines, empowering employees to work on more fulfilling tasks and letting customers enjoy the benefits of more efficient processes. By understanding the basics and getting hands-on experience, you can start your journey in this exciting field of AI.</p><p>Happy learning! 🚀</p><p>If you found this article helpful, please give it a clap 👏 and follow me for more stories like this. Your support means a lot and encourages me to keep sharing my knowledge. Stay tuned for more exciting content!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1867e3f8ab3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with VisionOS Development]]></title>
            <link>https://medium.com/@askumareshbabu/getting-started-with-visionos-development-c29f2efebb33?source=rss-28be4e233984------2</link>
            <guid isPermaLink="false">https://medium.com/p/c29f2efebb33</guid>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[visionos]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[kumaresh babu]]></dc:creator>
            <pubDate>Sat, 17 Feb 2024 04:07:43 GMT</pubDate>
            <atom:updated>2024-02-17T04:07:43.556Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bmcsuhPtZMpoD2aCDf0o1g.jpeg" /></figure><h4>Whether you’re a seasoned developer or just starting, VisionOS offers a unique platform for creating incredible spatial experiences. Here’s a step-by-step guide to help you get started with VisionOS development.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZqnsjDYjI_TchHYkoefZrQ.png" /></figure><h3>Plan for VisionOS</h3><p>Whether you already have an app on the App Store or it’s your first time developing for Apple platforms, there’s a lot you can do to get ready for creating apps for VisionOS. Start by understanding the capabilities of VisionOS and how it can enhance your existing applications or inspire new ones.</p><h3>Learn about VisionOS</h3><p>VisionOS is an extension of iOS and iPad OS development, offering a robust set of tools tailored for developers working on spatial computing applications. Start by learning about the fundamentals of spatial computing — windows, volumes, and spaces. Then, explore SwiftUI and RealityKit for a deeper dive into these technologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*odveb9vULHHVqRtCahQ8TA.png" /></figure><h3>Learning Source Reference Links</h3><p><a href="https://developer.apple.com/visionos/learn/">Apple Developer — VisionOS: This is the official resource from Apple for VisionOS development</a></p><p><a href="https://developer.apple.com/visionos/learn/">It provides comprehensive information about the platform, including its features, how to get started, and detailed documentation</a></p><p><a href="https://unity.com/campaign/spatial">Unity — Create for Apple Vision Pro and VisionOS: Unity provides a guide on how to use their platform for VisionOS development</a></p><p><a href="https://unity.com/campaign/spatial">They offer an exclusive 8-course series for self-paced and video-based learning</a></p><p><a href="https://developer.apple.com/visionos/resources/">Apple Developer — Downloads and Resources: This page provides additional resources for VisionOS development, including developer straps for accelerating the development of graphics-intensive apps and games</a></p><p>Remember, the best way to learn is by doing. Start a project, experiment with the tools, and don’t be afraid to make mistakes. Happy coding! 🚀</p><h3>Start a New Project</h3><p>Once you’re familiar with the basics, it’s time to start a new project. You can find a step-by-step tutorial that guides you through installing, setting up, and deploying a simple Unity app from scratch to target VisionOS and the Apple Vision Pro.</p><h3>Explore Developer Tools</h3><p>Familiarize yourself with the developer tools provided by Apple, like Xcode and the new Reality Composer Pro. These tools will help you design with depth, scale, and immersion, enhancing the user experience of your applications.</p><h3>Submit Your App</h3><p>Once you’ve developed your app, you can submit it to the App Store. Make sure to follow Apple’s guidelines for app submission to ensure a smooth review process.</p><h3>Stay Updated</h3><p>The field of spatial computing is rapidly evolving. Stay updated with the latest developments in VisionOS and spatial computing. This could involve reading articles, attending webinars, or participating in developer forums.</p><p>Remember, learning a new technology takes time and practice. Don’t be discouraged if you encounter challenges along the way. Keep learning, keep coding, and most importantly, have fun!</p><p>Happy writing! 📝</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c29f2efebb33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Swift-Shimmer Effect]]></title>
            <link>https://blog.stackademic.com/enhance-your-ios-app-with-a-shimmer-effect-d368aeb5d9f8?source=rss-28be4e233984------2</link>
            <guid isPermaLink="false">https://medium.com/p/d368aeb5d9f8</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[shimmer]]></category>
            <dc:creator><![CDATA[kumaresh babu]]></dc:creator>
            <pubDate>Mon, 12 Feb 2024 17:16:12 GMT</pubDate>
            <atom:updated>2024-04-01T05:39:38.896Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello iOS developers! Are you looking to add some flair to your app’s loading screens or enhance user engagement during content loading? If so, you’re in the right place. Today, we’ll explore how to implement a shimmer effect in your iOS application using Swift.</p><h3>What is a Shimmer Effect?</h3><p>A shimmer effect is a visual cue that content is loading. It’s a gradient highlight that sweeps across the view, giving the impression of motion and activity. This effect is commonly used in applications like Facebook while the content is loading.</p><h3>How to Implement a Shimmer Effect?</h3><p>Let’s dive into the code. Here’s a simple implementation of a shimmer effect:</p><pre>extension UIView {<br> public var isShimmering: Bool {<br>  set {<br>   if newValue {<br>    startShimmering()<br>   } else {<br>    stopShimmering()<br>   }<br>  }<br>  <br>  get {<br>   return layer.mask?.animation(forKey: shimmerAnimationKey) != nil<br>  }<br> }<br> <br> private var shimmerAnimationKey: String {<br>  return &quot;shimmer&quot;<br> }<br> <br> private func startShimmering() {<br>  let white = UIColor.white.cgColor<br>  let alpha = UIColor.white.withAlphaComponent(0.75).cgColor<br>  let width = bounds.width<br>  let height = bounds.height<br>  <br>  let gradient = CAGradientLayer()<br>  gradient.colors = [alpha, white, alpha]<br>  gradient.startPoint = CGPoint(x: 0.0, y: 0.4)<br>  gradient.endPoint = CGPoint(x: 1.0, y: 0.6)<br>  gradient.locations = [0.4, 0.5, 0.6]<br>  gradient.frame = CGRect(x: -width, y: 0, width: width*3, height: height)<br>  layer.mask = gradient<br>  <br>  let animation = CABasicAnimation(keyPath: #keyPath(CAGradientLayer.locations))<br>  animation.fromValue = [0.0, 0.1, 0.2]<br>  animation.toValue = [0.8, 0.9, 1.0]<br>  animation.duration = 1.25<br>  animation.repeatCount = .infinity<br>  gradient.add(animation, forKey: shimmerAnimationKey)<br> }<br> <br> private func stopShimmering() {<br>  layer.mask = nil<br> }<br>}</pre><h3>How to Use the Shimmer Effect?</h3><p>You can use the shimmer effect in your code like this:</p><pre>imageView.isShimmering = true</pre><p>This line of code starts the shimmer effect on an imageView or any other UIView where you want to apply the effect. When isShimmering is set to true, the view begins shimmering, indicating to the user that content is loading. To stop the shimmer effect, simply set isShimmering to false.</p><p>This is a great way to give users visual feedback that content is loading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9dKL8jN6GTRieon2fzjGKQ.jpeg" /></figure><h3>Conclusion</h3><p>The shimmer effect is a powerful tool for enhancing the user experience of your iOS app. By providing a visual indication of the loading state, you can keep users engaged while content is loading. With the steps outlined in this article, you can easily implement this effect in your own iOS applications.</p><p>Remember to consider performance implications and handle edge cases appropriately to ensure a smooth user experience.</p><p>Happy coding!</p><p>GitHub code: <a href="https://github.com/kumareshbabuas/Medium/tree/main/Shimmer">Shimmer</a></p><h3>Stackademic 🎓</h3><p>Thank you for reading until the end. Before you go:</p><ul><li>Please consider <strong>clapping</strong> and <strong>following</strong> the writer! 👏</li><li>Follow us <a href="https://twitter.com/stackademichq"><strong>X</strong></a><strong> | </strong><a href="https://www.linkedin.com/company/stackademic"><strong>LinkedIn</strong></a><strong> | </strong><a href="https://www.youtube.com/c/stackademic"><strong>YouTube</strong></a><strong> | </strong><a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a></li><li>Visit our other platforms: <a href="https://plainenglish.io/"><strong>In Plain English</strong></a><strong> | </strong><a href="https://cofeed.app/"><strong>CoFeed</strong></a><strong> | </strong><a href="https://venturemagazine.net/"><strong>Venture</strong></a><strong> | </strong><a href="https://blog.cubed.run/"><strong>Cubed</strong></a></li><li>More content at <a href="https://stackademic.com/"><strong>Stackademic.com</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d368aeb5d9f8" width="1" height="1" alt=""><hr><p><a href="https://blog.stackademic.com/enhance-your-ios-app-with-a-shimmer-effect-d368aeb5d9f8">Swift-Shimmer Effect</a> was originally published in <a href="https://blog.stackademic.com/">Stackademic</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>