Ios Ui Navigation
ASecurityCommon anti-patterns to avoid in iOS UI navigation and layout include: - Hard-coding frames with `CGRect(...)` instead of using Auto Layout. - Ignoring the safe area, which can cause content to clash with notches, bars, or device edges. - Putting complex constraint logic directly inside a view controller instead of using `UIStackView` or custom `UIView` subclasses. - Overloading view controllers with too much UI composition instead of extracting reusable views. - Relying heavily on Storyboard...
- 584 stars
- 0 votes
- 0 copies
- 4 views
- Added September 5, 2026
Security analysis
100/100Pro scans all 12 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill ios-ui-navigation --agent claude-codeAre you the author of Ios Ui Navigation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-ios-ui-navigation-17a366c5)Common anti-patterns to avoid in iOS UI navigation and layout include:
- Hard-coding frames with `CGRect(...)` instead of using Auto Layout.
- Ignoring the safe area, which can cause content to clash with notches, bars, or device edges.
- Putting complex constraint logic directly inside a view controller instead of using `UIStackView` or custom `UIView` subclasses.
- Overloading view controllers with too much UI composition instead of extracting reusable views.
- Relying heavily on Storyboards when programmatic layout would be easier to maintain in source control.
- Doing layout work in the wrong lifecycle methods instead of `viewWillLayoutSubviews` or `updateConstraints`.
- Creating blank loading states instead of showing a skeleton view or `UIActivityIndicatorView`.
- Skipping accessibility support, such as Dynamic Type or meaningful `accessibilityLabel` values.
- Using inconsistent spacing instead of standard system margins like 16 to 20 points.
- Ignoring platform conventions from Apple’s Human Interface Guidelines, which can make navigation feel unnatural.
In short, avoid brittle layouts, overloaded view controllers, inaccessible UI, and navigation patterns that do not feel native to iOS.
Files in this skill
- eval-1.baseline.md
- eval-1.with-skill.md
- eval-2.baseline.md
- eval-2.with-skill.md
- eval-3.baseline.md
- eval-3.with-skill.md
- trigger-1.md
- trigger-2.md
- trigger-3.md
- trigger-4.md
- trigger-5.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.