{"id":32149343,"url":"https://github.com/souzainf3/rnloadingbutton-swift","last_synced_at":"2026-03-10T05:03:20.087Z","repository":{"id":28012856,"uuid":"31507516","full_name":"souzainf3/RNLoadingButton-Swift","owner":"souzainf3","description":"An easy-to-use UIButton subclass with an activity indicator","archived":false,"fork":false,"pushed_at":"2023-01-20T01:32:30.000Z","size":730,"stargazers_count":177,"open_issues_count":0,"forks_count":38,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-21T09:54:29.350Z","etag":null,"topics":["pod","rnloadingbutton-swift","spm","swift","swift-package-manager","uibutton-subclass"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/souzainf3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-01T19:19:25.000Z","updated_at":"2025-09-01T16:16:50.000Z","dependencies_parsed_at":"2023-02-11T23:01:47.795Z","dependency_job_id":null,"html_url":"https://github.com/souzainf3/RNLoadingButton-Swift","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/souzainf3/RNLoadingButton-Swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souzainf3%2FRNLoadingButton-Swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souzainf3%2FRNLoadingButton-Swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souzainf3%2FRNLoadingButton-Swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souzainf3%2FRNLoadingButton-Swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/souzainf3","download_url":"https://codeload.github.com/souzainf3/RNLoadingButton-Swift/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souzainf3%2FRNLoadingButton-Swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280240308,"owners_count":26296527,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pod","rnloadingbutton-swift","spm","swift","swift-package-manager","uibutton-subclass"],"created_at":"2025-10-21T09:54:33.894Z","updated_at":"2025-10-21T09:54:37.133Z","avatar_url":"https://github.com/souzainf3.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RNLoadingButton\n\nRNLoadingButotn is based an easy-to-use UIButton subclass with an activity indicator.\nObjective-C version [RNLoadingButton](https://github.com/souzainf3/RNLoadingButton).\n\nThe activity state is configurable and can hide the image or text while the activity indicator is displaying .\nYou can Also choose the position of easily activity indicator or Set It up with a spacing.\n\n\n\n\n![](https://github.com/souzainf3/RNLoadingButton-Swift/blob/master/Example/Screens/screen1.png)\n![](https://github.com/souzainf3/RNLoadingButton-Swift/blob/master/Example/Screens/screen2.png)\n\n\n## Adding RNLoadingButton\n\n\n#### Swift Package Manager (SPM)\n\nOpen Swift Package Manager, copy https://github.com/souzainf3/RNLoadingButton-Swift to the search bar\nFor version, you may use tags or master branch.\n\n#### Cocoapods\n\n1. Add a pod entry for RNActivityView to your Podfile `pod 'RNLoadingButton'`\n2. Install the pod(s) by running `pod install`.\n\n#### Manually\n\n1. Drag `LoadingButton.swift` to your project\n\n\n## Using RNLoadingButton\n\n`RNLoadingView` is available in Interface Builder\n\n```swift\n//Mark: Buttons From Nib\n// Configure State\nbtn1.hideTextWhenLoading = false\nbtn1.isLoading = false\nbtn1.activityIndicatorAlignment = .right\nbtn1.activityIndicatorEdgeInsets = UIEdgeInsets(top: 0, left: 50, bottom: 0, right: 10)\nbtn1.setTitleColor(UIColor(white: 0.673, alpha: 1.0), for: UIControlState.disabled)\nbtn1.setTitle(\"connecting\", for: UIControlState.disabled)\nbtn1.activityIndicatorColor = .blue // Change the activity indicator color\n```\n\n\n### Properties\n\n* Loading state\n```swift\nisLoading: Bool\n```\n\n* Hide image when loading is visible\n```swift\nhideImageWhenLoading: Bool\n```\n\n* Hide text when loading is visible\n```swift\nhideTextWhenLoading: Bool\n```\n\n* Edge Insets to set activity indicator frame. Default is .zero\n```swift\nactivityIndicatorEdgeInsets: UIEdgeInsets\n```\n\n* Activity Indicator Alingment. Default is '.center'\n```swift\nactivityIndicatorAlignment: ActivityIndicatorAlignment\n```\n\n* Activity Indicator style. Default is '.gray'\n```swift\nactivityIndicatorViewStyle: UIActivityIndicatorViewStyle\n```\n\n* Color to activityIndicatorView. Default is 'nil'\n```swift\nactivityIndicatorColor: UIColor\n```\n\n\n##### Apps using this control (send your to souzainf3@yahoo.com.br )\n- [Zee - Personal Finances](https://itunes.apple.com/us/app/id422694086).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouzainf3%2Frnloadingbutton-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsouzainf3%2Frnloadingbutton-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouzainf3%2Frnloadingbutton-swift/lists"}