Vquery 4.0.7

Vquery 4.0.7

Maintained by Novo.



Vquery 4.0.7

  • By
  • Meterwhite

Swift View Query

Vquery Features

  • Vquery provides a query service for views under UIKit in Swift.
  • Vquery supports xib layouts well.
  • Supports SPM and CocoaPods management.

Installation

  • Manual import of the file Vquery.swift
import Vquery

Sample Code

  • Query by matching type and condition:
someView.vquery(ofType: UILable.self){ $0.text == "2024" }
  • Query sibling views by matching type and condition:
someView.vquerySibling(ofType: UILable.self){ $0.text == "2024" }
  • Work with views laid out in xib:
someView.vqueryByInspector(ofType: UILabel.self, tag: row, accessibilityLabel: "row.title"){ $0.. }

More Details

  • Check out the Demo:
    • 点击< > Code-> Download ZIP
    • Open the project Vquery-demo