{"id":2424,"url":"https://github.com/morizotter/SwiftyDrop","last_synced_at":"2025-08-03T00:30:55.075Z","repository":{"id":34024525,"uuid":"37782764","full_name":"morizotter/SwiftyDrop","owner":"morizotter","description":"Lightweight dropdown message bar in Swift. It's simple and beautiful.","archived":true,"fork":false,"pushed_at":"2019-03-29T01:01:59.000Z","size":13001,"stargazers_count":683,"open_issues_count":13,"forks_count":74,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-12-01T15:43:15.430Z","etag":null,"topics":[],"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/morizotter.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-06-20T19:24:00.000Z","updated_at":"2024-08-15T10:54:11.000Z","dependencies_parsed_at":"2022-07-14T01:50:33.864Z","dependency_job_id":null,"html_url":"https://github.com/morizotter/SwiftyDrop","commit_stats":null,"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morizotter%2FSwiftyDrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morizotter%2FSwiftyDrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morizotter%2FSwiftyDrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morizotter%2FSwiftyDrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morizotter","download_url":"https://codeload.github.com/morizotter/SwiftyDrop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503227,"owners_count":17930544,"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","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":[],"created_at":"2024-01-05T20:16:13.435Z","updated_at":"2024-12-06T17:31:08.489Z","avatar_url":"https://github.com/morizotter.png","language":"Swift","funding_links":[],"categories":["UI","Libs","Swift","UI [🔝](#readme)","ALL"],"sub_categories":["Alert \u0026 Action Sheet","UI","Other free courses"],"readme":"# SwiftyDrop\n\nSwiftyDrop is a lightweight pure Swift simple and beautiful dropdown message.\n\n[![Version](https://img.shields.io/cocoapods/v/SwiftyDrop.svg?style=flat)](http://cocoadocs.org/docsets/SwiftyDrop) [![License](https://img.shields.io/cocoapods/l/SwiftyDrop.svg?style=flat)](http://cocoadocs.org/docsets/SwiftyDrop) [![Platform](https://img.shields.io/cocoapods/p/SwiftyDrop.svg?style=flat)](http://cocoadocs.org/docsets/SwiftyDrop)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Join the chat at https://gitter.im/morizotter/SwiftyDrop](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/morizotter/SwiftyDrop?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n## Features\n\n- Easy to use like: `Drop.down(\"Message\")`\n- Message field expands depending on the message.\n\n## How it looks\n\n### States\n![Default](misc/Default.png)\n![Success](misc/Success.png)\n![Warning](misc/Warning.png)\n![Error](misc/Error.png)\n\n### Blurs\n![Light](misc/Light.png)\n![Dark](misc/Dark.png)\n\n### iPhone X\n\n![iPhoneX](misc/iPhoneX.png)\n\n### iPad\n\n![iPad](misc/iPadPortlait.png)\n\n## Demo\n\nGit clone or download this repository and open  **SwiftyDrop.xcodeproj** . You can try SwiftyDrop in your Mac or iPhone.\n\n## Runtime Requirements\n\n- iOS8.0 or later\n- Xcode 9.0\n- Swift 4.0\n\n## Installation and Setup\n\n**Note:** Embedded frameworks require a minimum deployment target of iOS 8.1.\n\n**Information:** To use SwiftyDrop with a project targeting iOS 8.0 or lower, you must include the `SwiftyDrop/Drop.swift` source file directly in your project.\n\n### Installing with CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a centralised dependency manager that automates the process of adding libraries to your Cocoa application. You can install it with the following command:\n\n```bash\n$ gem update\n$ gem install cocoapods\n$ pods --version\n```\n\nTo integrate SwiftyDrop into your Xcode project using CocoaPods, specify it in your `Podfile` and run `pod install`.\n\n```bash\nplatform :ios, '8.0'\nuse_frameworks!\npod 'SwiftyDrop', '~\u003e4.0'\n```\n\n### Installing with Carthage\n\nJust add to your Cartfile:\n\n```ogdl\ngithub \"morizotter/SwiftyDrop\" ~\u003e 4.0\n```\n\n### Manual Installation\n\nTo install SwiftyDrop without a dependency manager, please add all of the files in `/SwiftyDrop` to your Xcode Project.\n\n## Usage\n\n### Basic\n\nTo start using SwiftyDrop, write the following line wherever you want to show dropdown message:\n\n```swift\nimport SwiftyDrop\n```\n\nThen invoke SwiftyDrop, by calling:\n\n```swift\nDrop.down(\"Message\")\n```\n\nIt is really simple!\n\n### States\n\nSwiftyDrop has states of display.\n\n**Examples**\n\n```swift\nDrop.down(\"Message\")\nDrop.down(\"Message\", state: .Success)\nDrop.down(\"Message\", state: .Color(.orangeColor()))\nDrop.down(\"Message\", state: .Blur(.Light))\n```\n\n**Custom states**\n\nYou can customize looks by comforming `DropStatable` protocol.\nExamples are:\n\n```swift\nenum Custom: DropStatable {\n    case BlackGreen\n    var backgroundColor: UIColor? {\n        switch self {\n        case .BlackGreen: return .blackColor()\n        }\n    }\n    var font: UIFont? {\n        switch self {\n        case .BlackGreen: return UIFont(name: \"HelveticaNeue-Light\", size: 24.0)\n        }\n    }\n    var textColor: UIColor? {\n        switch self {\n            case .BlackGreen: return .greenColor()\n        }\n    }\n    var blurEffect: UIBlurEffect? {\n        switch self {\n        case .BlackGreen: return nil\n        }\n    }\n}\n\nDrop.down(self.sampleText(), state: Custom.BlackGreen)\n```\n\nOf course you can use class or struct to make custom state if it is comforming to `DropStatable` protocol.\n\n**Prepared States** are enum:\n- .Default\n- .Info\n- .Success\n- .Warning\n- .Error\n- .Color: UIColor\n- .Blur: UIBlurEffectStyle\n\n### Duration\n\n```swift\nDrop.down(\"Message\", duration: 3.0)\n```\n\nYou can change duration like this above. Default duration is 4.0.\n\n### Action\n\n```swift\nDrop.down(\"Message\") {\n    print(\"Action fired!\")\n}\n```\n\n## Contribution\n\nPlease file issues or submit pull requests! We're waiting! :)\n\n## License\n\nSwiftyDrop is released under the MIT license. Go read the LICENSE file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorizotter%2FSwiftyDrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorizotter%2FSwiftyDrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorizotter%2FSwiftyDrop/lists"}