- July 26, 2025
- Mins Read
If you are using CocoaPods add this text to your Podfile and run pod install
.
use_frameworks!
target ‘Your target name’
pod ‘TriLabelView’
Simply add TriLabelView.swift file to you project.
let triLabelView = TriLabelView(frame:CGRect)
view.addSubview(triLabelView)
// Change Text
triLabelView.labelText = “NEW”
// Adjust Length Percentage
// You can update this to set percentage value of this
// view to that of the superview.
// Default value is 50.0
triLabelView.lengthPercentage = 60.0
You can set the position of view with .TopLeft
being the default. The following positions are available
public enum Position:String {
case TopLeft
case TopRight
case BottomRight
case BottomLeft
}
You can update text color, font and background color
triLabelView.textColor = UIColor.yellowColor()
triLabelView.labelFont = UIFont.systemFont(ofSize: 15)
triLabelView.viewColor = UIColor.brownColor()
If you already have a view where you want to use then set it’s class
to TriLabelView
in identity inspector.
Or drag a View from object library and then change it’s class
to TriLabelView
in identity inspector.
Set the module
property to TriLabelView
.
NavigationKit is a lightweight library which makes SwiftUI navigation super easy to use. 💻 Installation 📦 Swift Package Manager Using Swift Package Manager, add ...
An alternative SwiftUI NavigationView implementing classic stack-based navigation giving also some more control on animations and programmatic navigation. NavigationStack Installation ...
With SwiftUI Router you can power your SwiftUI app with path-based routing. By utilizing a path-based system, navigation in your app becomes ...
This package takes SwiftUI's familiar and powerful NavigationStack API and gives it superpowers, allowing you to use the same API not just ...