GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - levantAJ/PaddingLabel: A label with padding for iOS

BranchesTags
Open more actions menu

Latest commit

 

History

33 Commits
33 Commits

Folders and files

NameName
Last commit message
Last commit date
PaddingLabel.xcodeproj
PaddingLabel.xcodeproj
 
 
PaddingLabel
PaddingLabel
 
 
PaddingLabelExample
PaddingLabelExample
 
 
PaddingLabelTests
PaddingLabelTests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
PaddingLabel.podspec
PaddingLabel.podspec
 
 
README.md
README.md
 
 
icon.png
icon.png
 
 

Repository files navigation

Pod Version Pod Platform Pod License

PaddingLabel

A label with padding for iOS

Screen Shot 2020-06-06 at 11 00 33

Requirements

  • iOS 8.0 or later
  • Xcode 9.0 or later

Installation

There is a way to use PaddingLabel in your project:

  • Using CocoaPods
  • Manually

Installation with CocoaPods

pod 'PaddingLabel', '1.2'

Manually

Manually drag file PaddingLabel.swift to your project.

Build Project

At this point your workspace should build without error. If you are having problem, post to the Issue and the community can help you solve it.

How To Use

Storyboard:

  • Change class of UILabel in your storyboard, xib to PaddingLabel.

Screen Shot 2020-06-06 at 11 08 58

Programmatically:

import PaddingLabel

let label = PaddingLabel(frame: CGRect(x: 0, y: 0, width: 500, height: 100))
label.topInset = 5.0 //by default
label.bottomInset = 5.0 //by default
label.leftInset = 7.0 //by default
label.rightInset = 7.0 //by default

Author

  • Tai Le

Communication

  • If you need help, use Stack Overflow.
  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Licenses

All source code is licensed under the MIT License.

About

A label with padding for iOS

Topics

cocoapodsinsetsioslabelmarginpaddingpodswiftuilabel

Resources

Readme
MIT license
Activity

Stars

51 stars

Watchers

0 watching

Forks

11 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.