Skip to content

Commit d0b6e2a

Browse files
committed
update readme.md
1 parent d0c4a9b commit d0b6e2a

File tree

4 files changed

+56
-11
lines changed

4 files changed

+56
-11
lines changed

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2025 rlarjsdn3 <rlarjsdn3@naver.com>
1+
Copyright (c) 2025 SOWOL-KIM <rlarjsdn3@naver.com>
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

Package.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// swift-tools-version: 5.5
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "StringExtension",
6+
platforms: [
7+
.iOS(.v15)
8+
],
9+
products: [
10+
.library(
11+
name: "StringExtension",
12+
targets: ["StringExtension"]
13+
)
14+
],
15+
targets: [
16+
.target(
17+
name: "StringExtension",
18+
path: "StringExtension/Classes"
19+
)
20+
]
21+
)

README.md

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,46 @@
1-
# StringExtension
1+
# String-Extension
22

3-
[![CI Status](https://img.shields.io/travis/rlarjsdn3/StringExtension.svg?style=flat)](https://travis-ci.org/rlarjsdn3/StringExtension)
3+
[![SwiftPM](https://img.shields.io/badge/SPM-supported-DE5C43.svg?style=flat)](https://swift.org/package-manager/)
44
[![Version](https://img.shields.io/cocoapods/v/StringExtension.svg?style=flat)](https://cocoapods.org/pods/StringExtension)
55
[![License](https://img.shields.io/cocoapods/l/StringExtension.svg?style=flat)](https://cocoapods.org/pods/StringExtension)
66
[![Platform](https://img.shields.io/cocoapods/p/StringExtension.svg?style=flat)](https://cocoapods.org/pods/StringExtension)
77

8-
## Example
8+
## Usage
99

10-
To run the example project, clone the repo, and run `pod install` from the Example directory first.
10+
If you want to find a specific character in a string, you can code it as shown below:
1111

12-
## Requirements
12+
```swift
13+
let text = "John Appleseed"
14+
```
15+
16+
```swift
17+
text[3] // Returns the Character "h"
18+
text[safe: 9] // Returns the Optional Character "l"
19+
text[safe: 100] // Returns the nil
20+
```
1321

1422
## Installation
1523

16-
StringExtension is available through [CocoaPods](https://cocoapods.org). To install
17-
it, simply add the following line to your Podfile:
24+
### Swift Package Manager
25+
26+
You can use The Swift Package Manager to install PTString-Subscript by addint the description to your Package.swift file:
27+
28+
```swift
29+
dependencies: [
30+
.package(url: "https://github.com/rlarjsdn3/String-Extension-Swift", from: "0.1.0")
31+
]
32+
```
33+
34+
### CocoaPods
1835

1936
```ruby
20-
pod 'StringExtension'
37+
pod "SwiftExtension"
2138
```
2239

2340
## Author
2441

25-
rlarjsdn3, rlarjsdn3@naver.com
42+
SOWOL-KIM, rlarjsdn3@naver.com
2643

2744
## License
2845

29-
StringExtension is available under the MIT license. See the LICENSE file for more info.
46+
PTStringSubscript is available under the MIT license. See the LICENSE file for more info.

0 commit comments

Comments
 (0)