All Projects → mukeshthawani → Faqview

mukeshthawani / Faqview

Licence: mit
An easy to use FAQ view for iOS written in Swift

Programming Languages

swift
15916 projects
swift4
162 projects

Projects that are alternatives of or similar to Faqview

Koyomi
Simple customizable calendar component in Swift 📆
Stars: ✭ 716 (+54.98%)
Mutual labels:  cocoapods, ui-components
Hover
🎈 The smartest floating button
Stars: ✭ 81 (-82.47%)
Mutual labels:  cocoapods, ui-components
Multiprogressview
📊 An animatable view that depicts multiple progresses over time. Modeled after UIProgressView
Stars: ✭ 614 (+32.9%)
Mutual labels:  cocoapods, ui-components
Iblocalizable
Localize your views directly in Interface Builder with IBLocalizable
Stars: ✭ 463 (+0.22%)
Mutual labels:  cocoapods, ui-components
Abexpandableview
Expandable, collapsible, filterable and single/multi selectable table view.
Stars: ✭ 138 (-70.13%)
Mutual labels:  cocoapods, ui-components
Rsformview
A Cocoapods library designed to easily create forms with multiple data entry fields
Stars: ✭ 84 (-81.82%)
Mutual labels:  cocoapods, ui-components
Wstagsfield
An iOS text field that represents tags, hashtags, tokens in general.
Stars: ✭ 1,013 (+119.26%)
Mutual labels:  cocoapods, ui-components
Trilabelview
A triangle shaped corner label view for iOS written in Swift.
Stars: ✭ 158 (-65.8%)
Mutual labels:  cocoapods, ui-components
Nim ios uikit
网易云信 iOS UI 组件,提供聊天界面,文本消息,图片消息,语音消息,视频消息,地理位置消息,自定义消息(阅后即焚)等消息示例。#推荐客户得比特币,首次推荐得0.02BTC,连续推荐得0.03BTC/单,上不封顶。点击参与https://yunxin.163.com/promotion/recommend
Stars: ✭ 1,326 (+187.01%)
Mutual labels:  cocoapods, ui-components
Slidingtabbar
A custom TabBar view with sliding animation written in Swift.
Stars: ✭ 84 (-81.82%)
Mutual labels:  cocoapods, ui-components
Bekcurvetabbar
Full Customizable Tabbar with IBInspectables
Stars: ✭ 144 (-68.83%)
Mutual labels:  cocoapods, ui-components
Containercontroller
UI Component. This is a copy swipe-panel from app: Apple Maps, Stocks. Swift version
Stars: ✭ 273 (-40.91%)
Mutual labels:  cocoapods, ui-components
Cleanymodal
Swift UI Kit to present clean modal/alert
Stars: ✭ 437 (-5.41%)
Mutual labels:  ui-components
React Native Elements
Cross-Platform React Native UI Toolkit
Stars: ✭ 21,758 (+4609.52%)
Mutual labels:  ui-components
Uitextfield Navigation
🏄‍♂️ UITextField-Navigation makes it easier to navigate between UITextFields and UITextViews
Stars: ✭ 436 (-5.63%)
Mutual labels:  cocoapods
Arslineprogress
iOS progress bar, replacement for the default activity indicator.
Stars: ✭ 434 (-6.06%)
Mutual labels:  cocoapods
Vue Swatches
🎨 Help the user picking beautiful colors!
Stars: ✭ 456 (-1.3%)
Mutual labels:  ui-components
Objective Leveldb
An Objective-C database library built over Google's LevelDB
Stars: ✭ 446 (-3.46%)
Mutual labels:  cocoapods
Igniteui Angular
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps.
Stars: ✭ 433 (-6.28%)
Mutual labels:  ui-components
Chromacolorpicker
🎨 An intuitive iOS color picker built in Swift.
Stars: ✭ 434 (-6.06%)
Mutual labels:  cocoapods

FAQView

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

  • This view is a subclass of UIView.


FAQView FAQView

Setup with CocoaPods

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

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

Or Add source

Simply add FAQView.swift file to you project.

Usage

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)
view.addSubview(faqView)

Attributed text answers

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

Customization

// Question text color  
faqView.questionTextColor = UIColor.blue

// Answer text color
faqView.answerTextColor = UIColor.blue

// 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 = UIColor.red

Requirements

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

Author

Mukesh Thawani

Contributing

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

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].