<?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 Purvesh Dodiya on Medium]]></title>
        <description><![CDATA[Stories by Purvesh Dodiya on Medium]]></description>
        <link>https://medium.com/@purvesh-dodiya?source=rss-68c433f53376------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wtc1HZ-vpdmyE4_DadDhcw.png</url>
            <title>Stories by Purvesh Dodiya on Medium</title>
            <link>https://medium.com/@purvesh-dodiya?source=rss-68c433f53376------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 06:48:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@purvesh-dodiya/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[Unlock the Power of Siri in iOS App: A Beginner’s Guide to Siri Integration with AppIntents in…]]></title>
            <link>https://purvesh-dodiya.medium.com/unlock-the-power-of-siri-in-ios-app-a-beginners-guide-to-siri-integration-with-appintents-in-5bd4945e127f?source=rss-68c433f53376------2</link>
            <guid isPermaLink="false">https://medium.com/p/5bd4945e127f</guid>
            <dc:creator><![CDATA[Purvesh Dodiya]]></dc:creator>
            <pubDate>Thu, 12 Sep 2024 06:21:33 GMT</pubDate>
            <atom:updated>2024-09-22T15:23:26.885Z</atom:updated>
            <content:encoded><![CDATA[<h3>🚀Unlock the Power of Siri in iOS App: A Beginner’s Guide to Siri Integration with AppIntents in UIKit/SwiftUI”</h3><h4>Experience the power of voice-controlled home automation in this<a href="https://www.youtube.com/watch?v=68L63FSyhHY"> live demonstration video</a>.</h4><figure><img alt="AppIntent + Siri + HomeAutomation" src="https://cdn-images-1.medium.com/max/1024/1*jbBAZT3Vu4UXahytEzcLHg.png" /><figcaption><strong>AppIntent + Siri + HomeAutomation</strong></figcaption></figure><h3><strong>Introduction:</strong></h3><p><em>“Hey Siri, switch living room light in my home!”</em> — what if your iOS app could leverage the power of Siri just as seamlessly? In today’s fast-paced digital world, users crave convenience, and voice commands are the next big step in enhancing user experience.</p><p>Imagine giving your users the ability to interact with your app hands-free, using natural language commands that blend perfectly with their everyday lives. That’s where Siri integration comes in.</p><p>In this article, I’ll explain the process of integrating Siri into your iOS app using AppIntents, whether you’re working with UIKit, SwiftUI, or both.</p><p>Ready to dive into the world of voice-activated apps? Let’s get started.</p><h3><strong>Understanding Siri Integration and AppIntents:</strong></h3><p><strong>What Are AppIntents?</strong></p><ul><li><a href="https://developer.apple.com/documentation/AppIntents">AppIntents</a> introduced in iOS 16 WWDC22 is a powerful feature in iOS that allow your app to respond to Siri commands and shortcuts.</li><li>The App Intents framework enables a deep integration of your app’s actions and content with system features across various platforms, such as Siri, Spotlight, widgets, and controls and more.</li><li>When users invoke Siri, they can perform specific tasks in your app using natural language. For example, they can say, <em>“Turn on the living room light in MyHome,”</em> and your app can respond by performing the requested action via app intent</li></ul><h3>Prerequisites:</h3><ol><li><strong>Apple Developer Account:</strong> Profile with siri capabilities can be generated only in paid developer account.</li><li><strong>Xcode Installation: </strong>Ensure you have the Xcode installed</li><li><strong>Siri Capabilities Enabled: </strong>In Xcode, navigate to your app target settings under <strong>Signing &amp; Capabilities</strong> and add Siri capabilities.</li></ol><h3><strong>Implementing Siri Integration with UIKit/SwiftUI</strong></h3><ul><li>Either you are working on UIKit project or SwiftUi or combination, AppIntents implementation will remain same as below.</li><li>First, define a custom intent by creating a new struct that conforms to the AppIntent protocol.</li><li>In this example, we define a custom AppIntent called SwitchBoardIntent to control smart accessories like lights, fans, ACs, etc., in a home automation app.</li></ul><p>The SwitchBoardIntent struct is the heart of this Siri integration. Let’s break it down:</p><ol><li><strong>Struct Definition and Conformance:</strong></li></ol><pre>struct SwitchBoardIntent: AppIntent, ForegroundContinuableIntent { }</pre><ul><li><strong>SwitchBoardIntent:</strong> A structure representing the Siri intent.</li><li><strong>AppIntent:</strong> A protocol that allows this struct to be recognized by Siri as an actionable intent.</li><li><strong>ForegroundContinuableIntent:</strong> A protocol that permits the intent to run app in the foreground when needed, especially if we want to open app.</li></ul><p><strong>2. Parameters Defined in the Intent:</strong></p><p>The SwitchBoardIntent struct defines two parameters:</p><pre>@Parameter(title: &quot;Select Accessories&quot;, requestValueDialog: &quot;Which accessories would you like to control?&quot;)<br>var accessories: AccessoriesEnum</pre><ul><li><strong>@Parameter:</strong> This property wrapper is used to define parameters for the intent. These are the inputs the user provides to Siri.</li><li>You can use the @Parameter property wrapper with common Swift and Foundation types such as <a href="https://developer.apple.com/documentation/Swift/Bool">Bool</a>, <a href="https://developer.apple.com/documentation/Swift/Int">Int</a>, <a href="https://developer.apple.com/documentation/Swift/Double">Double</a>, <a href="https://developer.apple.com/documentation/Swift/String">String</a>, <a href="https://developer.apple.com/documentation/Swift/Duration">Duration</a>, <a href="https://developer.apple.com/documentation/foundation/date">Date</a>, <a href="https://developer.apple.com/documentation/foundation/decimal">Decimal</a>, <a href="https://developer.apple.com/documentation/foundation/measurement">Measurement</a>, and <a href="https://developer.apple.com/documentation/foundation/url">URL</a> and collections such as <a href="https://developer.apple.com/documentation/Swift/Array">Array</a> and <a href="https://developer.apple.com/documentation/Swift/Set">Set</a>.</li><li><strong>requestValueDialog</strong>: A parameter text displayed and spoken by siri while displaying enum option.</li><li><strong>accessories:</strong> This parameter utilizes AccessoriesEnum, which contains various options for accessories available in different rooms.</li></ul><pre>@Parameter(title: &quot;Turn On/Off&quot;, requestValueDialog: &quot;Would you like to?&quot;)<br>var switchStatus: SwitchStatusEnum</pre><ul><li><strong>switchStatus:</strong> A parameter for deciding whether to turn the accessory on or off, represented by the SwitchStatusEnum.</li></ul><p><strong>3. Defining the Intent Title</strong></p><pre>static var title = LocalizedStringResource(&quot;Switch Board&quot;)</pre><ul><li><strong>title:</strong> Provides a user-friendly name for the intent displayed in Siri, Spotlight and Shortcuts apps.</li></ul><p><strong>4. Implementing the Main Logic of the Intent:</strong></p><pre>@MainActor<br>func perform() async throws -&gt; some IntentResult &amp; ProvidesDialog &amp; ShowsSnippetView { }</pre><ul><li><strong>perform():</strong> This function executes when Siri invokes this intent after getting value of all required parameter from user.</li><li><strong>@MainActor:</strong> Ensures that the UI updates occur on the main thread.</li><li><strong>IntentResult &amp; ProvidesDialog &amp; ShowsSnippetView:</strong> Specifies that the function returns a combination of an IntentResult, a Dialog for user interaction, and a SnippetView (SwiftUI view) to show a visual representation in Siri.</li><li>If you only want to display a message without showing a view to the user in the response, you can use IntentResult and ProvidesDialog.</li></ul><p><strong>5. Understanding the Supporting Logic:</strong></p><pre>private func switchComponent() async throws {<br>    return try await withCheckedThrowingContinuation { continuation in<br>        SwitchManager.shared.switchComponents(<br>            premisesKey: accessories.getPath().premises,<br>            appliancesKey: accessories.getPath().appliances,<br>            status: switchStatus<br>        ) { error in<br>            if let error = error {<br>                continuation.resume(throwing: error as Error)<br>            } else {<br>                continuation.resume()<br>            }<br>        }<br>    }<br>}</pre><ul><li><strong>switchComponent()</strong>: An asynchronous function that interacts with the SwitchManager to execute the switching operation.</li><li><strong>withCheckedThrowingContinuation:</strong> A Swift concurrency utility to bridge between the async-await model and callback-based APIs.</li><li>It can perform a network call even if the app is in the background or has been terminated.</li></ul><p>In the example below, errors thrown by switchComponents must conform to both the Swift.Error and CustomLocalizedStringResourceConvertible protocols to be properly thrown by an AppIntent.</p><pre><br>enum AppIntentError: Swift.Error, CustomLocalizedStringResourceConvertible {<br>    case unAuthorized<br><br>    var localizedStringResource: LocalizedStringResource {<br>        switch self {<br>        case .unAuthorized:<br>            return &quot;You are not logged in, please open app and login.&quot;<br>        }<br>    }<br>}</pre><p>So after following the above steps <strong>SwitchBoardIntent</strong> will looks like this:</p><pre>import AppIntents<br>import SwiftUI // Needed only if you use ShowsSnippetView<br><br>struct SwitchBoardIntent: AppIntent, ForegroundContinuableIntent {<br>    @Parameter(title: &quot;Select Accessories&quot;, requestValueDialog: &quot;Which accessories would you like to control?&quot;)<br>    var accessories: AccessoriesEnum<br>    <br>    @Parameter(title: &quot;Turn On/Off&quot;, requestValueDialog: &quot;Would you like to?&quot;)<br>    var switchStatus: SwitchStatusEnum<br>    <br>    static var title = LocalizedStringResource(&quot;Switch Board&quot;)<br>    <br>    @MainActor<br>    func perform() async throws -&gt; some IntentResult &amp; ProvidesDialog &amp; ShowsSnippetView {<br>        do {<br>            try await switchComponent()<br>        } catch {<br>            guard let error = error as? AppIntentError else {<br>                throw error<br>            }<br>            throw needsToContinueInForegroundError(IntentDialog(error.localizedStringResource))<br>        }<br>        <br>        return .result(dialog: .init(stringLiteral: &quot;Successfully turned \(switchStatus.rawValue.lowercased()) the \(accessories.rawValue.capitalized)&quot;)) {<br>            SwitchCellView(viewModel: .init(applianceName: accessories.getPath().appliances.rawValue, isOn: switchStatus == .ON))<br>        }<br>    }<br>    <br>    private func switchComponent() async throws {<br>        return try await withCheckedThrowingContinuation { continuation in<br>            SwitchManager.shared.switchComponents(<br>                premisesKey: accessories.getPath().premises,<br>                appliancesKey: accessories.getPath().appliances,<br>                status: switchStatus<br>            ) { error in<br>                if let error = error {<br>                    continuation.resume(throwing: error as Error)<br>                } else {<br>                    continuation.resume()<br>                }<br>            }<br>        }<br>    }<br>}</pre><ul><li><strong>switchComponent():</strong> This function is called to handle the actual switching logic (turning accessories on or off). You can replace this function with your own to perform any desired operation, whether it’s executing a network call, handling device interactions, or performing other custom tasks.</li><li><strong>needsToContinueInForegroundError</strong>: When an error occurs, this function checks if the error is of type AppIntentError. If it is, it presents a dialog to the user, prompting them to take further action by opening the app in the foreground.</li></ul><p><strong>6. How to Define Enum:</strong></p><p>Create enums representing the parameters Siri will control. For example:</p><pre>enum AccessoriesEnum: String, CaseIterable {<br>    case bedRoomFan = &quot;BedRoom Fan&quot;<br>    // other cases...<br><br>    func getPath() // your custom methods...<br>}<br><br>extension AccessoriesEnum: AppEnum {<br>    static var typeDisplayRepresentation: TypeDisplayRepresentation {<br>        TypeDisplayRepresentation(name: &quot;Accessories Status&quot;)<br>    }<br>    <br>    static var caseDisplayRepresentations: [AccessoriesEnum: DisplayRepresentation] = [<br>        .bedRoomFan: DisplayRepresentation(title: &quot;Bedroom Fan&quot;, synonyms: [<br>            &quot;Bedroom Fan&quot;, &quot;Room Fan&quot;, &quot;Bedroom Ceiling Fan&quot;, &quot;Fan in Bed Room&quot;, &quot;Fan in Bedroom&quot;, &quot;Fan in Room&quot;<br>        ]),<br>    ]<br>}</pre><pre>enum SwitchStatusEnum: String {<br>    case ON<br>    case OFF<br>}<br><br>extension SwitchStatusEnum: AppEnum {<br>    static var typeDisplayRepresentation: TypeDisplayRepresentation {<br>        TypeDisplayRepresentation(name: &quot;Switch Status&quot;)<br>    }<br>    <br>    static var caseDisplayRepresentations: [SwitchStatusEnum : DisplayRepresentation] = [<br>        .ON: DisplayRepresentation(title: &quot;Turn On&quot;, synonyms: [&quot;ON, O.N, AON, EON&quot;]),<br>        .OFF: DisplayRepresentation(stringLiteral: &quot;Turn Off&quot;)<br>    ]<br>}</pre><ul><li>The AppEnum protocol is used for enums that you want to expose to Siri and Shortcuts in an iOS app.</li><li>By conforming to AppEnum, you provide a way to represent the enum cases with user-friendly names and synonyms (optional), which is essential for voice interactions and suggestions.</li></ul><h3><strong>Registering AppIntents with SiriKit:</strong></h3><p>Registering an intent involves setting up an AppShortcutsProvider:</p><pre>struct AppShortcutProvider: AppShortcutsProvider {<br>    static var appShortcuts: [AppShortcut] {<br>        AppShortcut(<br>            intent: SwitchBoardIntent(),<br>            phrases: [<br>                &quot;Switch \(\.$accessories) in \(.applicationName)&quot;,<br>                &quot;Switch \(\.$accessories) with \(.applicationName)&quot;],<br>            shortTitle: &quot;Switch Board&quot;,<br>            systemImageName: &quot;lightswitch.on&quot;<br>        )<br>    }<br>}</pre><ul><li><strong>AppShortcutProvider</strong>: A structure conforming to the AppShortcutsProvider protocol. Once you create this struct anywhere in your code, the operating system will automatically detect it and create the shortcut after the app is installed, without any manual setup required from the user.</li><li>However, note that your app can have a maximum of 10 app shortcuts.</li><li><strong>intent:</strong> The intent that this shortcut is associated with. Here, the shortcut is linked to the SwitchBoardIntent.</li><li><strong>phrases:</strong> An array of strings that represent the phrases Siri can recognize to invoke this shortcut.</li><li>Your app has a limit of 1,000 phrases for shortcuts.</li><li><strong>Dynamic Interaction:</strong> The use of dynamic placeholders like \(\.$accessories) and \(.applicationName) makes the shortcuts adaptable and personalized. These placeholders represent values provided by the user when they speak the phrase and ensure that these values are used directly without being asked again, streamlining the interaction and enhancing user experience.</li><li>In a single phrase, at most one parameter is allowed in addition to\(.applicationName).</li></ul><h3>To fully integrate Siri capabilities into your app:</h3><ul><li><strong>Enable Siri Capabilities:</strong> Navigate to your app target settings in Xcode, go to the <strong>Signing &amp; Capabilities</strong> tab, and click the <strong>+</strong> button to add Siri capabilities.</li><li><strong>Configure Siri Authorization:</strong> In your AppDelegate, update the didFinishLaunchingWithOptions method to request Siri authorization.</li></ul><pre>    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -&gt; Bool {<br>        INPreferences.requestSiriAuthorization { status in<br>             if status == .authorized {<br>                 print(&quot;Hey, Siri!&quot;)<br>             } else {<br>                 print(&quot;Nay, Siri!&quot;)<br>             }<br>         }<br>        return true<br>    }</pre><p>And that’s it — we’re all set! Hit the run button, and you’ll see the shortcut appear in Spotlight. You can also invoke the shortcut by saying the phrase to Siri.</p><figure><img alt="Siri Demo" src="https://cdn-images-1.medium.com/max/296/1*5_8TaNGIceAoBF4Aq8OlVw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*4W6OttMH5VXM7B9UzKpwww.gif" /></figure><h3>Conclusion:</h3><p><strong>Recap: Key Takeaways from Integrating Siri with iOS UIKit/SwiftUI:</strong></p><ul><li><strong>Enhanced User Experience:</strong> Integrating Siri with AppIntents significantly enhances the user experience by making iOS apps more user-friendly and accessible.</li><li><strong>Background Functionality:</strong> Siri and Shortcuts can execute network or REST API calls even if the app is in the background or has been terminated, ensuring continuous functionality.</li><li><strong>Seamless Integration:</strong> Exposing key features of your app to the OS allows these features to be utilized seamlessly, reducing friction for users.</li><li><strong>Efficient Setup:</strong> By implementing a single AppIntent, you can integrate with Siri Shortcuts, Spotlight, and widgets, streamlining the process and expanding the app’s functionality with minimal additional effort.</li></ul><p>For a practical demonstration of how these concepts come together, check out <a href="https://www.youtube.com/watch?v=68L63FSyhHY">YouTube</a> video showcasing a complete home automation integration with Siri.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F68L63FSyhHY%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D68L63FSyhHY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F68L63FSyhHY%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/50d6e72d965dfc0f572f19e442aecc26/href">https://medium.com/media/50d6e72d965dfc0f572f19e442aecc26/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5bd4945e127f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Progress Button using JetPack Compose : SSJetPackComposeProgressButton]]></title>
            <link>https://medium.com/simform-engineering/progress-button-using-jetpack-compose-ssjetpackcomposeprogressbutton-fbc187d1370e?source=rss-68c433f53376------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbc187d1370e</guid>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[button-animation]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[progressbutton]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Purvesh Dodiya]]></dc:creator>
            <pubDate>Tue, 10 Aug 2021 14:45:10 GMT</pubDate>
            <atom:updated>2021-08-10T14:45:10.833Z</atom:updated>
            <content:encoded><![CDATA[<h3>Progress Button using JetPack Compose : SSJetPackComposeProgressButton</h3><h4><a href="https://github.com/SimformSolutionsPvtLtd/SSJetPackComposeProgressButton">SSJetPackComposeProgressButton</a> is an elegant button with different loading animations which make your app attractive.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HU_72HCfuLepJwwazwFbFw.png" /></figure><p>Almost everybody agrees that a great design helps a lot to make people get interested in your app. <strong>SSJetPackComposeProgressButton</strong> is an android GitHub library to create animated loading buttons suitable for API calls as well as other background processes where users have to wait. It’s based on the android declarative UI toolkit <strong>Jetpack Compose. </strong>It comes with a pre-built animation design that attracts users to wait while you call API or do some background process. Let’s see how you can eliminate your efforts by using this library…</p><h3>Jetpack Compose</h3><p>Jetpack Compose is Android’s modern toolkit for building native UI. It simplifies and accelerates UI development on Android. Quickly bring your app to life with less code, powerful tools, and intuitive Kotlin APIs.</p><h3>How to get started</h3><p>Please get Android Studio Arctic Fox 2020.3.1 or above <a href="https://developer.android.com/studio">from here</a> and use JDK 11 to build this project.</p><h3>Features</h3><ul><li>Android’s modern toolkit — Jetpack Compose support.</li><li>Newly designed loading animation makes your app attractive.</li><li>Blinking icon button for your hot feature.</li><li>Button with text, right and left icon.</li><li>Different types of states make it easy to manage buttons. (Idle, Loading, Success, Failure)</li><li>Fully customized button (Corner radius, background, colors, animation speed, etc.)</li><li>Customized button loading animation with your logo and special animation effect.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wZ-gqXDJ4NSbBdQqi4nOrA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*L5Lulif7-ThPq7DG9m1Fhw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JJ43HTdiaLOA1fYf-LM67g.gif" /></figure><h3>Installation</h3><ol><li>Add it in your root build.gradle at the end of repositories:</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1098cf023a3b599d0be3c8765ef9b7f8/href">https://medium.com/media/1098cf023a3b599d0be3c8765ef9b7f8/href</a></iframe><p>2. Add the dependency in your app’s build.gradle file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb32677736799e2f09ebb841107fc4be/href">https://medium.com/media/cb32677736799e2f09ebb841107fc4be/href</a></iframe><h3>Usage</h3><ol><li>Just use SSJetPackComposeProgressButton where you want button:</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/80e20e3e73c577fa95f85f1bdbbfdd68/href">https://medium.com/media/80e20e3e73c577fa95f85f1bdbbfdd68/href</a></iframe><p>2. On Success change submitButtonState to success state:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/11426ec124cc1bb3045648457f71720e/href">https://medium.com/media/11426ec124cc1bb3045648457f71720e/href</a></iframe><p>3. On Failure change submitButtonState to the failure state:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d011b2d982f48315a88105a599f81035/href">https://medium.com/media/d011b2d982f48315a88105a599f81035/href</a></iframe><h3>Customizations</h3><p>It comes with a pre-built animation design while the button is in a loading state.</p><ul><li>CIRCLE</li><li>WHEEL</li><li>ZOOM_IN_OUT_CIRCLE</li><li>CLOCK</li><li>SPIRAL</li></ul><p>However, you can customize the loading icon and animation effect according to your requirement. It is customizable with your app/brand icon and color. You can apply multiple animation effects from rotation, zoom-in-out, and color changer too.</p><p>Here are the code steps to customize the loading button:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a0161df5be1e02b83df42b30a44d46ac/href">https://medium.com/media/a0161df5be1e02b83df42b30a44d46ac/href</a></iframe><p>And All Set…Your custom loading button is ready, really!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*WI9ah7qV_2s2Z4imEaDkhQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*h1gvEdYbY-GSHicRQnBDJQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/1*LgpU5itDD9AJT2CcMIwzDQ.gif" /></figure><p>Still, there are many attributes available using which you can easily customize the loading button in jetpack compose. Here is the list of attributes:</p><h3>All Attributes</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/92a54b0cbcb698908c9c2ce019dfe8a8/href">https://medium.com/media/92a54b0cbcb698908c9c2ce019dfe8a8/href</a></iframe><h3>Conclusion</h3><p><a href="https://github.com/SimformSolutionsPvtLtd/SSJetPackComposeProgressButton">SSJetPackComposeProgressButton</a> library provides a great variety of loading button animation in the modern android toolkit <strong>Jetpack compose</strong>. You can easily create a button in Jetpack Compose and integrate it with your background process like API call to change state according to API progress, success, and failure.</p><p>You can check out the fully working <a href="https://github.com/SimformSolutionsPvtLtd/SSJetPackComposeProgressButton"><strong><em>example</em></strong></a> on our GitHub Repository. If you are facing any bugs/issues or want any feature then feel free to create an issue on <a href="https://github.com/SimformSolutionsPvtLtd/SSJetPackComposeProgressButton/issues"><strong><em>GitHub</em></strong>.</a></p><p>If this article and library helps you then please show some love by staring ⭐️ our library and giving a few claps 👏.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbc187d1370e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/simform-engineering/progress-button-using-jetpack-compose-ssjetpackcomposeprogressbutton-fbc187d1370e">Progress Button using JetPack Compose : SSJetPackComposeProgressButton</a> was originally published in <a href="https://medium.com/simform-engineering">Simform Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>