{"id":2588,"url":"https://github.com/mukeshthawani/TriLabelView","last_synced_at":"2025-08-06T16:31:15.419Z","repository":{"id":56924515,"uuid":"63002232","full_name":"mukeshthawani/TriLabelView","owner":"mukeshthawani","description":"A triangle shaped corner label view for iOS written in Swift.","archived":false,"fork":false,"pushed_at":"2024-08-07T14:27:38.000Z","size":586,"stargazers_count":168,"open_issues_count":2,"forks_count":23,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-13T14:43:45.935Z","etag":null,"topics":["cocoapods","ios","swift","ui-components"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mukeshthawani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-10T14:21:29.000Z","updated_at":"2024-08-07T14:27:43.000Z","dependencies_parsed_at":"2024-10-25T18:33:43.048Z","dependency_job_id":"cf8f28c0-8adc-41c5-83e1-53754428413a","html_url":"https://github.com/mukeshthawani/TriLabelView","commit_stats":{"total_commits":84,"total_committers":6,"mean_commits":14.0,"dds":0.1785714285714286,"last_synced_commit":"cb02a9c8240442026096693d10ba24ab50d086bf"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshthawani%2FTriLabelView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshthawani%2FTriLabelView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshthawani%2FTriLabelView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mukeshthawani%2FTriLabelView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mukeshthawani","download_url":"https://codeload.github.com/mukeshthawani/TriLabelView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228923694,"owners_count":17992567,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cocoapods","ios","swift","ui-components"],"created_at":"2024-01-05T20:16:17.707Z","updated_at":"2024-12-09T16:31:02.775Z","avatar_url":"https://github.com/mukeshthawani.png","language":"Swift","funding_links":[],"categories":["UI","Libs","UI [🔝](#readme)"],"sub_categories":["Label","UI","Other free courses"],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"graphics/logotype-a.png\"\u003e\u003c/p\u003e\n\n# A triangle shaped corner label view for iOS written in Swift.\n\n* This view is a subclass of UIView.\n* It can be created and customized from the Storyboard or from the code.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003cimg\nsrc='https://raw.githubusercontent.com/mukeshthawani/TriLabelView/master/graphics/first_example.png' width='450' alt='TriLabelView'\u003e\n\u003cimg\nsrc='https://raw.githubusercontent.com/mukeshthawani/TriLabelView/master/graphics/second_example.png' width='450' alt='TriLabelView'\u003e\n\n## Setup with CocoaPods\n\nIf you are using CocoaPods add this text to your Podfile\nand run `pod install`.\n\n    use_frameworks!\n    target 'Your target name'\n    pod 'TriLabelView'\n\n## Or Add source\n\nSimply add\n[TriLabelView.swift](https://github.com/mukeshthawani/TriLabelView/blob/master/TriLabelView/TriLabelView.swift) file to you project.\n\n## Usage\n\n### Creating a view from the code\n\n```Swift\nlet triLabelView = TriLabelView(frame:CGRect)\nview.addSubview(triLabelView)\n```\n\n#### Customization\n```Swift\n// Change Text\ntriLabelView.labelText = \"NEW\"\n\n// Adjust Length Percentage\n// You can update this to set percentage value of this\n// view to that of the superview.\n// Default value is 50.0\ntriLabelView.lengthPercentage = 60.0\n```\n\nYou can set the position of view with `.TopLeft` being the default. The following positions are available\n```Swift\npublic enum Position:String {\n    case TopLeft\n    case TopRight\n    case BottomRight\n    case BottomLeft\n}\n```\n\nYou can update text color, font and background color\n```Swift\ntriLabelView.textColor = UIColor.yellowColor()\n\ntriLabelView.labelFont = UIFont.systemFont(ofSize: 15)\n\ntriLabelView.viewColor = UIColor.brownColor()\n```\n\n### Creating a view from the storyboard\n\n- If you already have a view where you want to use then set it's `class` to `TriLabelView` in identity inspector.\n\n- Or drag a **View** from object library and then change it's `class` to `TriLabelView` in identity inspector.\n\n- Set the `module` property to `TriLabelView`.\n\n\u003cimg\nsrc='https://raw.githubusercontent.com/mukeshthawani/TriLabelView/master/graphics/add_to_storyboard.png' width='260' alt='Add TriLabelView to storyboard'\u003e\n\n- Customize the view properties in the attributes inspector.\n\n\u003cimg\nsrc='https://raw.githubusercontent.com/mukeshthawani/TriLabelView/master/graphics/attributes_inspector.png' width='360' alt='Attributes inspector'\u003e\n\n## Requirements\n\n- Swift 3 / Xcode 8\n- iOS 9.3\n\n## Author\n\n[Mukesh Thawani](http://twitter.com/MukeshThawani)\n\n## Contributing\n\nFeature requests, bug reports, and pull requests are all welcome.\n\n## License\n\nCopyright (c) 2016 Mukesh Thawani. Release under the [MIT License](License).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmukeshthawani%2FTriLabelView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmukeshthawani%2FTriLabelView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmukeshthawani%2FTriLabelView/lists"}