{"id":2190,"url":"https://github.com/mukeshthawani/FAQView","last_synced_at":"2025-08-02T23:32:14.318Z","repository":{"id":14778638,"uuid":"75253608","full_name":"mukeshthawani/FAQView","owner":"mukeshthawani","description":"An easy to use FAQ view for iOS written in Swift","archived":false,"fork":false,"pushed_at":"2022-05-07T09:40:17.000Z","size":1829,"stargazers_count":473,"open_issues_count":3,"forks_count":26,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-11-20T06:52:43.391Z","etag":null,"topics":["cocoapods","ios","swift","swift-3","swift4","ui-components"],"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/mukeshthawani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-01T03:59:46.000Z","updated_at":"2024-05-25T23:24:33.000Z","dependencies_parsed_at":"2022-11-28T10:39:13.383Z","dependency_job_id":null,"html_url":"https://github.com/mukeshthawani/FAQView","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshthawani%2FFAQView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshthawani%2FFAQView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshthawani%2FFAQView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshthawani%2FFAQView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mukeshthawani","download_url":"https://codeload.github.com/mukeshthawani/FAQView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228413997,"owners_count":17915921,"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":["cocoapods","ios","swift","swift-3","swift4","ui-components"],"created_at":"2024-01-05T20:16:07.115Z","updated_at":"2024-12-06T17:30:50.437Z","avatar_url":"https://github.com/mukeshthawani.png","language":"Swift","funding_links":[],"categories":["UI","Swift"],"sub_categories":["Other free courses","Font","Other Testing"],"readme":"# FAQView\n\n# An easy to use FAQ view for iOS written in Swift.\n\n* This view is a subclass of UIView.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Screenshots:\n\n\u003cimg\nsrc='https://github.com/X901/FAQView/blob/master/Demo/graphics/screenshot-Dark.png' width='300' alt='FAQView'\u003e\u003cimg\nsrc='https://github.com/X901/FAQView/blob/master/Demo/graphics/screenshot-Light.png' width='300' alt='FAQView'\u003e\n\n\u003cimg\nsrc='https://github.com/X901/FAQView/blob/master/Demo/graphics/screenshot-RTL%20Dark.png' width='300' alt='FAQView'\u003e\u003cimg\nsrc='https://github.com/X901/FAQView/blob/master/Demo/graphics/screenshot-RTL%20Light.png' width='300' alt='FAQView'\u003e\n\n\n## Setup with CocoaPods\n\nIf you are using CocoaPods add this text to your Podfile\nand run `pod install`.\n\n    use_frameworks!\n    target 'Your target name'\n    pod 'FAQView', '~\u003e 0.7.0'\n\n## Or Add source\n\nSimply add\n[FAQView.swift](https://github.com/mukeshthawani/FAQView/blob/master/Source/FAQView.swift) file to you project.\n\n## Usage\n\n### Creating a view from the code\n\n```Swift\nlet items = [FAQItem(question: \"What is reddit?\", answer: \"reddit is a source for what's new and popular on the web.\"),\n            FAQItem(question: \"How is a submission's score determined?\", answer: \"A submission's score is simply the number of upvotes minus the number of downvotes.\")]\n\nlet faqView = FAQView(frame: view.frame, title: \"Top Queries\", items: items)\nview.addSubview(faqView)\n```\n#### Attributed text answers\n\nYou may use attributed text instead of plain text. Set the ```attributedAnswer``` property of items to an NSAttributedString. \n\n\n\n#### Customization\n```Swift\n// Question text color  \nfaqView.questionTextColor = UIColor.blue\n\n// Answer text color\nfaqView.answerTextColor = UIColor.blue\n\n// Question text font\nfaqView.questionTextFont = UIFont(name: \"HelveticaNeue-Light\", size: 15)\n\n// View background color\nfaqView.viewBackgroundColor = UIColor.white\n\n// Set up data detectors for automatic detection of links, phone numbers, etc., contained within the answer text.\nfaqView.dataDetectorTypes = [.phoneNumber, .calendarEvent, .link]\n\n// Set color for links and detected data\nfaqView.tintColor = UIColor.red\n\n// Set Layout position .left or .right\nfaqView.positionType = .left\n\n\n```\n\n## Requirements\n\n- Swift 5.0+\n- Xcode 13.0+\n- FAQView 0.4.x is compatible with Swift 3\n- iOS 9.0+\n\n## Author\n\n[Mukesh Thawani](http://twitter.com/MukeshThawani)\n\n## Contributing\n\nFeature requests, bug reports, and pull requests are all welcome.\n\n## License\n\nCopyright (c) 2016-present Mukesh Thawani. Release under the [MIT License](License).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmukeshthawani%2FFAQView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmukeshthawani%2FFAQView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmukeshthawani%2FFAQView/lists"}