Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. TriLabelView

TriLabelView

MITSwift

A triangle-shaped corner label view for iOS apps, customizable via code or Storyboard.

GitHubGitHub
170 stars22 forks0 contributors

What is TriLabelView?

TriLabelView is a Swift library that provides a triangle-shaped corner label view for iOS applications. It allows developers to easily add customizable corner labels to highlight information like statuses, tags, or badges within their app's UI.

Target Audience

iOS developers building apps that require visual corner indicators, such as e-commerce apps showing sale badges or productivity apps marking item statuses.

Value Proposition

It saves development time by offering a ready-made, highly customizable component that works both in code and Storyboard, with no complex dependencies.

Overview

A triangle shaped corner label view for iOS written in Swift.

Use Cases

Best For

  • Adding sale or discount badges to product images in shopping apps
  • Displaying status indicators (e.g., 'New', 'Sold') in list or grid views
  • Creating custom corner tags for photos or media items
  • Highlighting priority or category labels in task management apps
  • Building iOS apps that need lightweight, reusable badge components

Not Ideal For

  • Apps requiring animated or interactive corner badges (TriLabelView is static and lacks built-in animation support)
  • Projects built entirely with SwiftUI (it's UIKit-based with no native SwiftUI integration)
  • Teams needing badges with shapes other than triangles (it's limited to the triangular design)

Pros & Cons

Pros

Storyboard and Code Support

The README demonstrates that TriLabelView can be created and customized both programmatically and in Interface Builder, offering flexibility for different development styles.

Easy Position Customization

It allows placement in any corner (top-left, top-right, etc.) via a simple Position enum, making it adaptable to various UI layouts.

Visual Customization Options

Developers can adjust text, font, colors, and triangle size using properties like labelText and lengthPercentage, as shown in the code examples.

Lightweight Integration

Available as a single Swift file or via CocoaPods, ensuring minimal setup and no complex dependencies, per the installation instructions.

Cons

Outdated Swift Version

The README specifies Swift 3 and Xcode 8, which are several versions behind current standards, potentially requiring migration for modern iOS projects.

Limited Feature Set

It only provides a static triangular label without animations, interactive capabilities, or support for other shapes, restricting use in dynamic UIs.

No SwiftUI Support

As a UIKit component, it doesn't offer native SwiftUI integration, forcing developers to use workarounds like UIViewRepresentable for newer apps.

Frequently Asked Questions

Quick Stats

Stars170
Forks22
Contributors0
Open Issues2
Last commit1 year ago
CreatedSince 2016

Tags

#ios#custom-views#ui-components#badges#cocoapods#swift#storyboard#uikit

Built With

U
UIKit
C
CocoaPods
S
Swift

Included in

iOS51.7kSwift26.0k
Auto-fetched 18 hours ago

Related Projects

TTTAttributedLabelTTTAttributedLabel

A drop-in replacement for UILabel that supports attributes, data detectors, links, and more

Stars8,712
Forks1,693
Last commit2 years ago
LTMorphingLabelLTMorphingLabel

[EXPERIMENTAL] Graceful morphing effects for UILabel written in Swift.

Stars8,139
Forks776
Last commit4 months ago
ActiveLabel.swiftActiveLabel.swift

UILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift

Stars4,605
Forks676
Last commit2 years ago
ZCAnimatedLabelZCAnimatedLabel

UILabel replacement with fine-grain appear/disappear animation

Stars2,269
Forks214
Last commit5 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub