{"id":22751835,"url":"https://github.com/boraseoksoon/bsfloatlistview","last_synced_at":"2025-04-14T13:56:57.123Z","repository":{"id":56903203,"uuid":"169993210","full_name":"boraseoksoon/BSFloatListView","owner":"boraseoksoon","description":"Boring floating list view","archived":false,"fork":false,"pushed_at":"2019-11-13T11:11:54.000Z","size":250,"stargazers_count":20,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T03:03:11.770Z","etag":null,"topics":["cocoa","cocoa-touch","custom","customui","floating","ios","library","popsup","popup","swift","swift4-2","uicollectionview","uitableview"],"latest_commit_sha":null,"homepage":null,"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/boraseoksoon.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":"2019-02-10T15:32:51.000Z","updated_at":"2023-05-06T19:03:47.000Z","dependencies_parsed_at":"2022-08-20T18:32:33.564Z","dependency_job_id":null,"html_url":"https://github.com/boraseoksoon/BSFloatListView","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boraseoksoon%2FBSFloatListView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boraseoksoon%2FBSFloatListView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boraseoksoon%2FBSFloatListView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boraseoksoon%2FBSFloatListView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boraseoksoon","download_url":"https://codeload.github.com/boraseoksoon/BSFloatListView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248893503,"owners_count":21179037,"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":["cocoa","cocoa-touch","custom","customui","floating","ios","library","popsup","popup","swift","swift4-2","uicollectionview","uitableview"],"created_at":"2024-12-11T05:07:37.147Z","updated_at":"2025-04-14T13:56:57.095Z","avatar_url":"https://github.com/boraseoksoon.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BSFloatListView\n\n[![CI Status](https://img.shields.io/travis/boraseoksoon@gmail.com/BSFloatListView.svg?style=flat)](https://travis-ci.org/boraseoksoon@gmail.com/BSFloatListView)\n[![Version](https://img.shields.io/cocoapods/v/BSFloatListView.svg?style=flat)](https://cocoapods.org/pods/BSFloatListView)\n[![License](https://img.shields.io/cocoapods/l/BSFloatListView.svg?style=flat)](https://cocoapods.org/pods/BSFloatListView)\n[![Platform](https://img.shields.io/cocoapods/p/BSFloatListView.svg?style=flat)](https://cocoapods.org/pods/BSFloatListView)\n\n\u003cbr\u003e\n\u003cimg src=\"https://firebasestorage.googleapis.com/v0/b/boraseoksoon-ff7d3.appspot.com/o/BSFloatList01.png?alt=media\u0026token=2e536ed1-d667-4053-acba-cd319dd49b8f\" width=360\u003e\n\u003cimg src=\"https://firebasestorage.googleapis.com/v0/b/boraseoksoon-ff7d3.appspot.com/o/BSFloatList02.png?alt=media\u0026token=3ec13f43-d009-4727-ad11-99aa651d6e1c\" width=360\u003e\n\u003cbr\u003e\n\n\n\u003cb\u003eClick youtube image below to watch BSFloatListView sample in action.\u003c/b\u003e\n\u003cbr\u003e\n\u003ca href=\"http://www.youtube.com/watch?feature=player_embedded\u0026v=Js8BUt1Rg8c\n\" target=\"_blank\"\u003e\u003cimg src=\"http://img.youtube.com/vi/Js8BUt1Rg8c/0.jpg\" \nalt=\"BSFloatListView\" width=\"240\" height=\"180\" border=\"10\" /\u003e\u003c/a\u003e\n\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\niOS 10.0+ \u003cbr\u003e\nSwift 4.2 + \u003cbr\u003e\n\n## How to use\n\u003cbr\u003e\nFirst things first,\u003cbr\u003e  \n\u003cb\u003eStep 0. import BSFloatListView\u003c/b\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003cb\u003eStep 1. Create Instance programmatically as an instance variable \u003c/b\u003e\n\u003cbr\u003e\nDeclare and create instance as an instance variable as below.\n\u003cbr\u003e\nBSFloatListView is only supported in a programmatical way.\n\u003cbr\u003e\n\n```Swift\n/**\n* initiating floatListView instance..\n/// Used to create floatList instance from nib file to return.\n///\n/// - warning:  Mind whether isSticky is true or false will make difference of usage. Check detail in example source.\n/// - parameter observedTouchView: a targetView to react on.\n/// - parameter dataList: string array to display on the list.\n/// - parameter touchDetectionMode: choose recognizer type for either short tap(.short) or long press(.long)\n/// - parameter isSticky: if true, rather than floating around, stick to and show floatListView on a given observedTouchView in the first parameter.\n/// - returns: BSFloatListView instance\n*/\n\nprivate lazy var floatListView: BSFloatListView = { [unowned self] in\n  let floatListView = BSFloatListView.initialization(\n    on:\n      observedTouchView,  // a view to stick to and to focus on.\n    with:\n      dataList, // data list to show in the BSFloatListView [\"Java\", \"Swift\", \"Scala\", \"Kotlin\", \"C++\", \"Clojure\"] \n    touchDetectionMode:\n      touchDetectionMode, // either .short or .long. if you want long press to invoke BSFloatListView, go for .long.  \n    isSticky:\n      isSticky // true\n    )\n    \n    /// a closure for which list to choose.\n    floatListView.didSelectRowAtClosure = { [unowned self] indexPath in\n      print(\"clicked at : \", indexPath.row)\n    }\n  return floatListView\n}()\n```\n\u003cbr\u003e\nisSticky is important. \u003cbr\u003eIf isSticky is true, BSFloatListView just keeps staying at CGPoint(x:0, y:0) of observedTouchView you specified regardless of which location a user tapped to use BSFloatListView within the observedTouchView frame. \u003cbr\u003eOtherwise, BSFloatListView just follows a location a user tapped within the observedTouchView frame.\n\u003cbr\u003e \n\n\u003cbr\u003e\n\u003cb\u003eStep 1. In viewDidLoad, apply readyToUse() method to get ready to show BSFloatListView.\u003c/b\u003e\n\u003cbr\u003e\nJust like below.  \n\u003cbr\u003e\n\n\n```Swift\noverride func viewDidLoad() {\n  super.viewDidLoad()\n\n  /**\n  * Ready to use BSFloatListView\n  */\n  floatListView.readyToUse()\n}\n\n```\n\n\u003cbr\u003e\n\u003cb\u003eThat's all! Just enjoy BSFloatListView! :)\u003c/b\u003e\n\u003cbr\u003e\n\n\n## Installation\n\nBSFloatListView is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'BSFloatListView'\n```\n\n## Author\n\nboraseoksoon@gmail.com\n\n## License\n\nBSFloatListView is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboraseoksoon%2Fbsfloatlistview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboraseoksoon%2Fbsfloatlistview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboraseoksoon%2Fbsfloatlistview/lists"}