Loading...
Loading...
Comprehensively reviews UIKit code for best practices on modern APIs, architecture, and performance. Use when reading, writing, or reviewing UIKit-based iOS projects, including UIViewController, UITableView, UICollectionView, Auto Layout, or programmatic UI code. Also use when migrating legacy UIKit patterns to modern equivalents. Do not use for SwiftUI-only projects or Combine-only logic with no UIKit dependency.
npx skill4agent add tornikegomareli/uikit-agent-skill uikit-maxreferences/api.mdreferences/views.mdreferences/layout.mdreferences/controllers.mdreferences/navigation.mdreferences/tableview-collectionview.mdreferences/design.mdreferences/accessibility.mdreferences/performance.mdreferences/concurrency.mdreferences/swift.mdreferences/hygiene.mdif #availableUIAlertControllerUIAlertViewUIAlertControllerUIAlertView// Before
let alert = UIAlertView(title: "Error", message: msg, delegate: self, cancelButtonTitle: "OK")
alert.show()
// After
let alert = UIAlertController(title: "Error", message: msg, preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "OK", style: .default))
present(alert, animated: true)NSLayoutConstraint.activate// Before
label.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
label.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
// After
NSLayoutConstraint.activate([
label.topAnchor.constraint(equalTo: view.topAnchor),
label.leadingAnchor.constraint(equalTo: view.leadingAnchor)
])translatesAutoresizingMaskIntoConstraints = false// Before
view.addSubview(label)
label.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
// After
label.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(label)
NSLayoutConstraint.activate([
label.topAnchor.constraint(equalTo: view.topAnchor)
])UIAlertViewUIAlertControllerNSLayoutConstraint.activatetranslatesAutoresizingMaskIntoConstraintsreferences/api.mdreferences/views.mdreferences/layout.mdreferences/controllers.mdreferences/navigation.mdreferences/tableview-collectionview.mdreferences/design.mdreferences/accessibility.mdreferences/performance.mdreferences/concurrency.mdreferences/swift.mdreferences/hygiene.md