Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/comcxx11/SpringText
Browse files Browse the repository at this point in the history
  • Loading branch information
comcxx11 committed Oct 16, 2020
2 parents 168fc37 + 4838d1e commit f2f86cf
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 14 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This is a basic workflow to help you get started with Actions

name: SpringText CI

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- master
- hotfix
pull_request:
branches:
- '*'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
name: Test iOS
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_12.app/Contents/Developer
strategy:
matrix:
destination: ["OS=14.0,name=iPhone 11 Pro"] #, "OS=12.4,name=iPhone XS", "OS=11.4,name=iPhone X", "OS=10.3.1,name=iPhone SE"]
steps:
- uses: actions/checkout@v2
- name: iOS - ${{ matrix.destination }}
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "SpringText.xcodeproj" -scheme "SpringText-Example" -destination "${{ matrix.destination }}" clean test | xcpretty
25 changes: 11 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# references:
# * https://www.objc.io/issues/6-build-tools/travis-ci/
# * https://github.com/supermarin/xcpretty#usage

osx_image: xcode7.3
language: objective-c
# cache: cocoapods
# podfile: Example/Podfile
# before_install:
# - gem install cocoapods # Since Travis is not always on latest version
# - pod install --project-directory=Example
script:
- set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SpringText.xcworkspace -scheme SpringText-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
- pod lib lint
env:
global:
- LC_CTYPE=en_US.UTF-8
matrix:
include:
- os: osx
language: swift
osx_image: xcode11.7
script:
- set -o pipefail
- xcodebuild -project SpringText.xcodeproj -scheme SpringText-Example -sdk iphonesimulator
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SpringText

[![Language](https://img.shields.io/badge/Swift-4%20%26%205-orange.svg)]()
[![CI Status](https://img.shields.io/travis/comcxx11/SpringText.svg?style=flat)](https://travis-ci.org/comcxx11/SpringText)
[![Version](https://img.shields.io/cocoapods/v/SpringText.svg?style=flat)](https://cocoapods.org/pods/SpringText)
[![License](https://img.shields.io/cocoapods/l/SpringText.svg?style=flat)](https://cocoapods.org/pods/SpringText)
Expand All @@ -15,10 +16,19 @@ To run the example project, clone the repo, and run `pod install` from the Examp
- iOS 9.3

## Usage

The usage is very similar to `UITextField` text properties.
`SPLabel` has two options: Normal, Currency
```swift
lblAmount.text(num:192398)
```

Default currency symbol is `dollor` sign `$`
```swift
lblAmount.setCurrency(symbol: "")
lblAmount.text(num:192398, showCurrency:true)
```

## Installation

SpringText is available through [CocoaPods](https://cocoapods.org). To install
Expand Down

0 comments on commit f2f86cf

Please sign in to comment.