{"id":3081,"url":"https://github.com/anatoliyv/InfoView","last_synced_at":"2025-08-03T13:31:53.323Z","repository":{"id":56915453,"uuid":"58637058","full_name":"anatoliyv/InfoView","owner":"anatoliyv","description":"Swift based simple information view with pointed arrow.","archived":true,"fork":false,"pushed_at":"2021-02-15T12:12:21.000Z","size":1462,"stargazers_count":60,"open_issues_count":1,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-13T12:03:17.883Z","etag":null,"topics":[],"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/anatoliyv.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":"2016-05-12T11:50:53.000Z","updated_at":"2023-01-28T13:08:23.000Z","dependencies_parsed_at":"2022-08-21T03:50:33.663Z","dependency_job_id":null,"html_url":"https://github.com/anatoliyv/InfoView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatoliyv%2FInfoView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatoliyv%2FInfoView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatoliyv%2FInfoView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatoliyv%2FInfoView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anatoliyv","download_url":"https://codeload.github.com/anatoliyv/InfoView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228548567,"owners_count":17935221,"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:30.855Z","updated_at":"2024-12-07T01:30:33.460Z","avatar_url":"https://github.com/anatoliyv.png","language":"Swift","funding_links":[],"categories":["Walkthrough / Intro / Tutorial","Libs","UI [🔝](#readme)"],"sub_categories":["Web View","UI","Other free courses"],"readme":"# InfoView\n\nView to show small text information blocks with arrow pointed to another view.In most cases it will be a button that was pressed.\n\n![infoview5](https://cloud.githubusercontent.com/assets/1595032/15215075/30e1f68e-1859-11e6-9cc9-cdf98d013b3c.gif)\n\n![](https://travis-ci.org/anatoliyv/InfoView.svg?branch=master)\n[![Version](https://img.shields.io/cocoapods/v/InfoView.svg?style=flat)](http://cocoapods.org/pods/InfoView)\n[![License](https://img.shields.io/cocoapods/l/InfoView.svg?style=flat)](http://cocoapods.org/pods/InfoView)\n[![Platform](https://img.shields.io/cocoapods/p/InfoView.svg?style=flat)](http://cocoapods.org/pods/InfoView)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n## Installation\n\n#### Swift3\n\nSwift3 support implemented in this [branch](https://github.com/anatoliyv/InfoView/tree/swift3).\n\n#### CocoaPods\nInfoView is available through [CocoaPods](http://cocoapods.org/pods/InfoView). To install\nit, simply add the following line to your Podfile:\n\n```\npod \"InfoView\"\n```\n\n#### Manually\n1. Download and drop ```/InfoView``` folder in your project.  \n2. Congratulations!  \n\n## Simple appearance\n\n ```\n let infoView = InfoView(text: \"Your message here\")\n infoView.show(onView: view, centerView: button)\n ```\n \n where `view` is view of your visible view controller, `centerView` is a view where arrow will be pointed to\n \n## Delegation\n \n You can set a delegate and get events when view will appear/hide:\n \n ```\n infoView.delegate = self\n \n // In your delegate class\n func infoViewDidShow(view: InfoView) {\n     print(\"Now visible\")\n }\n ```\n \n## Customization\n \n Set arrow position. In this case you will be responsible for possible errors (for example if there are not enough space to show text etc.)\n ```\n infoView.arrowPosition = .Left\n ```\n \n Set animation:\n ```\n infoView.animation = InfoViewAnimation.None                // Without animation\n infoView.animation = InfoViewAnimation.FadeIn              // FadeIn animation\n infoView.animation = InfoViewAnimation.FadeInAndScale      // FadeIn and Scale animation\n ```\n \n Set custom font:\n ```\n infoView.font = UIFont(name: \"AvenirNextCondensed-Regular\", size: 16)\n ```\n \n Set custom text color:\n ```\n infoView.textColor = UIColor.grayColor()\n ```\n \n Set custom background color:\n ```\n infoView.backgroundColor = UIColor.blackColor()\n ```\n\n Set custom layer properties:\n ```\n infoView.layer.shadowColor = UIColor.whiteColor().CGColor\n infoView.layer.cornerRadius = 15\n infoView.layer.shadowRadius = 5\n infoView.layer.shadowOffset = CGPoint(x: 2, y: 2)\n infoView.layer.shadowOpacity = 0.5\n ```\n \n## Hide with a delay\n \n Hide InfoView after delay automatically\n\n ```\n infoView.hideAfterDelay = 2\n ```\n\n## ToDo\n\n- [ ] More animations\n- [ ] Support long text messages\n- [ ] Support NSAttributedString's for formatted text\n\n## Author\n\nAnatoliy Voropay, anatoliy.voropay@gmail.com\n\n## Contributors\n\nThank you all!\n\n * [lfarah](https://github.com/lfarah)\n\n## License\n\nInfoView 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%2Fanatoliyv%2FInfoView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanatoliyv%2FInfoView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanatoliyv%2FInfoView/lists"}