Skip to content
Back to skills

Ios Ui Navigation

ASecurity

Here’s a quick-start UIKit navigation example that follows the iOS UI navigation skill: ```swift import UIKit final class HomeViewController: UIViewController { private let detailsButton: UIButton = { let button = UIButton(type: .system) button.translatesAutoresizingMaskIntoConstraints = false button.setTitle("Open Details", for: .normal) button.titleLabel?.font = .preferredFont(forTextStyle: .headline) button.accessibilityLabel = "Open details screen" return button }() override func viewDidL...

  • 584 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
developmentswift

Security analysis

A100/100

Pro scans all 12 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill ios-ui-navigation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ios Ui Navigation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ios Ui Navigation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-ios-ui-navigation-894a5ae0/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-ios-ui-navigation-894a5ae0)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Here’s a quick-start UIKit navigation example that follows the iOS UI navigation skill:

```swift
import UIKit

final class HomeViewController: UIViewController {
    private let detailsButton: UIButton = {
        let button = UIButton(type: .system)
        button.translatesAutoresizingMaskIntoConstraints = false
        button.setTitle("Open Details", for: .normal)
        button.titleLabel?.font = .preferredFont(forTextStyle: .headline)
        button.accessibilityLabel = "Open details screen"
        return button
    }()

    override func viewDidLoad() {
        super.viewDidLoad()
        title = "Home"
        view.backgroundColor = .systemBackground
        navigationItem.largeTitleDisplayMode = .always

        view.addSubview(detailsButton)
        NSLayoutConstraint.activate([
            detailsButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
            detailsButton.centerYAnchor.constraint(equalTo: view.safeAreaLayoutGuide.centerYAnchor)
        ])

        detailsButton.addTarget(self, action: #selector(openDetails), for: .touchUpInside)
    }

    @objc private func openDetails() {
        let feedback = UINotificationFeedbackGenerator()
        feedback.notificationOccurred(.success)
        navigationController?.pushViewController(DetailsViewController(), animated: true)
    }
}

final class DetailsViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        title = "Details"
        view.backgroundColor = .secondarySystemBackground
    }
}

@main
final class AppDelegate: UIResponder, UIApplicationDelegate {
    var window: UIWindow?

    func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
    ) -> Bool {
        let window = UIWindow(frame: UIScreen.main.bounds)
        let rootViewController = UINavigationController(rootViewController: HomeViewController())
        rootViewController.navigationBar.prefersLargeTitles = true
        window.rootViewController = rootViewController
        window.makeKeyAndVisible()
        self.window = window
        return true
    }
}
```

Why this is a solid starting point:

- Uses `UINavigationController` for standard push navigation.
- Uses Auto Layout instead of manual frames.
- Anchors layout to the safe area.
- Supports Dynamic Type with `preferredFont`.
- Adds an `accessibilityLabel`.
- Uses haptic feedback on navigation action.

Files in this skill

  • eval-1.baseline.md981 B
  • eval-1.with-skill.md1.6 KB
  • eval-2.baseline.md1.2 KB
  • eval-2.with-skill.md1.2 KB
  • eval-3.baseline.md2 KB
  • eval-3.with-skill.md2.4 KB
  • trigger-1.md176 B
  • trigger-2.md176 B
  • trigger-3.md138 B
  • trigger-4.md123 B
  • trigger-5.md140 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.