Swiftpack.co - MakwanaRohit/ARSelectableView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by MakwanaRohit.
MakwanaRohit/ARSelectableView 1.2.1
ARSelectableView is for selection type radio, checkbox, tag
⭐️ 19
🕓 34 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/MakwanaRohit/ARSelectableView.git", from: "1.2.1")


ARSelectableView is a for selection type.

Selection Type

  • Radio
  • Checkbox
  • Tags


  • iOS 13.0+
  • Xcode 13.0+
  • Swift 5+


Firstly, download ARSelectableView.

add files in your project

By code, using initializer. Parameter frame

var selectionView: ARSelectionView?
var selectionView: ARSelectionView?
self.selectionView = ARSelectionView(frame: CGRect.zero)

selectionView?.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([self.selectionView!.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor),
                             self.selectionView!.leftAnchor.constraint(equalTo: view.leftAnchor),
                             self.selectionView!.rightAnchor.constraint(equalTo: view.rightAnchor),
                             self.selectionView!.heightAnchor.constraint(equalToConstant: UIScreen.main.bounds.size.height/2)])


Set selection type

self.selectionView?.selectionType = .radio 

Set items

self.selectionView.configureItems([ARSelectModel(title: "Blues Music"), ARSelectModel(title: "Jazz Music")])

Change properties

  • defaultSelectionColor : Seletion button default Color (UIColor.black)
  • selectedSelectionColor : Seletion button selected Color (UIColor.black)
  • defaultTitleColor : Default Title Color (UIColor.black)
  • selectedTitleColor : Selected Title Color (UIColor.black)
  • defaultCellBGColor : Default Cell BG Color (UIColor.white)
  • selectedCellBGColor : Selected Cell BG Color (UIColor.white)
  • Othor option available for this please lookout


Stars: 19
Last commit: 5 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

5 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics