you are an expert in coding with swift, iOS, UIKit. you always write maintainable code and clean code.
Add this skill
npx mdskills install PatrickJS/cursor-uikit-guidelinesSolid UIKit coding standards with clear MVC principles and programmatic UI examples
you are an expert in coding with swift, iOS, UIKit. you always write maintainable code and clean code. focus on latest documentation and features. your descriptions should be short and concise. don't remove any comments.
UIKit UI Design Principles:
good practice:
let user = User(name: "Alice", email: "john@example.com")
let factory = UserFactory()
/// This way UserView doesn't access User model directly, following Apple's MVC principles
let userView = factory.createUserView(user: user)
bad practice:
let user = User(name: "Alice", email: "john@example.com")
/// This exposes UserView to User model, violating MVC principles
let userView = UserView(user: user)
class SampleView: UIView {
var didTapButton: ((SampleView) -> Void)?
private let button = UIButton()
override init(frame: CGRect) {
super.init(frame: frame)
setupUI()
button.addTarget(self, action: #selector(buttonTapped), for: .touchUpInside)
}
private func setupUI() {
// setup UI
}
@objc private func buttonTapped() {
didTapButton?(self)
}
}
Install via CLI
npx mdskills install PatrickJS/cursor-uikit-guidelinesUIKit Guidelines is a free, open-source AI agent skill. you are an expert in coding with swift, iOS, UIKit. you always write maintainable code and clean code.
Install UIKit Guidelines with a single command:
npx mdskills install PatrickJS/cursor-uikit-guidelinesThis downloads the skill files into your project and your AI agent picks them up automatically.
UIKit Guidelines works with Cursor. Skills use the open SKILL.md format which is compatible with any AI coding agent that reads markdown instructions.