Latest 0.6.0
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit

An easy to use FAQ view for iOS written in Swift.

  • This view is a subclass of UIView.

src=’‘ width=’600′ alt=’FAQView’>
src=’‘ width=’600′ alt=’FAQView’>

Setup with CocoaPods

If you are using CocoaPods add this text to your Podfile
and run pod install.

target 'Your target name'
pod 'FAQView', '~> 0.5.0'

Or Add source

Simply add
FAQView.swift file to you project.


Creating a view from the code

let items = [FAQItem(question: "What is reddit?", answer: "reddit is a source for what's new and popular on the web."),
            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.")]

let faqView = FAQView(frame: view.frame, title: "Top Queries", items: items)

Attributed text answers

You may use attributed text instead of plain text. Set the attributedAnswer property of items to an NSAttributedString.


// Question text color  
faqView.questionTextColor =

// Answer text color
faqView.answerTextColor =

// Question text font
faqView.questionTextFont = UIFont(name: "HelveticaNeue-Light", size: 15)

// View background color
faqView.viewBackgroundColor = UIColor.white

// Set up data detectors for automatic detection of links, phone numbers, etc., contained within the answer text.
faqView.dataDetectorTypes = [.phoneNumber, .calendarEvent, .link]

// Set color for links and detected data
faqView.tintColor =


  • Swift 4.0
  • Xcode 9.0+
  • FAQView 0.4.x is compatible with Swift 3
  • iOS 9.0+


Mukesh Thawani


Feature requests, bug reports, and pull requests are all welcome.


Copyright (c) 2016-present Mukesh Thawani. Release under the MIT License.

Latest podspec

    "name": "FAQView",
    "platforms": {
        "ios": "9.0"
    "version": "0.6.0",
    "summary": "An easy to use FAQ view for iOS written in Swift.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Mukesh Thawani": "[email protected]"
    "resources": "Source/**/*.xcassets",
    "social_media_url": "",
    "source": {
        "git": "",
        "tag": "0.6.0"
    "frameworks": "UIKit",
    "source_files": "Source/*.swift",
    "requires_arc": true

Pin It on Pinterest

Share This