Skip to content

Commit 32f466b

Browse files
author
Ryan Nystrom
committed
Rename repo to StyledTextKit
1 parent 5a1597f commit 32f466b

File tree

66 files changed

+1175
-1124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1175
-1124
lines changed

Podfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ source 'https://github.com/CocoaPods/Specs.git'
22
use_frameworks!
33
inhibit_all_warnings!
44

5-
workspace 'StyledText'
5+
workspace 'StyledTextKit'
66

7-
target 'StyledTextTests' do
7+
target 'Tests' do
88
pod 'Snap.swift', :git => 'https://github.com/skyweb07/Snap.swift.git', :branch => 'feature/fix_image_generation_for_directory_with_spaces'
99
end

Podfile.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ CHECKOUT OPTIONS:
1717
SPEC CHECKSUMS:
1818
Snap.swift: 278be4849c3829e9a2425709de7319cae01195b7
1919

20-
PODFILE CHECKSUM: ba5fa153c423ae3808fc2a7f15cdc0cf697609bb
20+
PODFILE CHECKSUM: 1147cc2c124fee0f4f4e5f931fefdf43a7d3dbbe
2121

22-
COCOAPODS: 1.4.0.beta.1
22+
COCOAPODS: 1.5.2

Pods/Manifest.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Pods/Pods.xcodeproj/project.pbxproj

+286-274
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Pods/Target Support Files/Pods-StyledTextTests/Pods-StyledTextTests-dummy.m

-5
This file was deleted.

Pods/Target Support Files/Pods-StyledTextTests/Pods-StyledTextTests.modulemap

-6
This file was deleted.

Pods/Target Support Files/Pods-Tests/Pods-Tests-dummy.m

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+49-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+15-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Pods/Target Support Files/Pods-StyledTextTests/Pods-StyledTextTests-umbrella.h renamed to Pods/Target Support Files/Pods-Tests/Pods-Tests-umbrella.h

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Pods/Target Support Files/Pods-Tests/Pods-Tests.modulemap

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Pods/Target Support Files/Snap.swift/Snap.swift.xcconfig

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<p align="center">
2-
<img src="/images/styledtext.png" />
2+
<img src="/images/banner.png" />
33
</p>
44

5-
`StyledText` is a declarative building and fast rendering attributed string library. It serves as a replacement to `NSAttributedString` and `UILabel` for background-thread size and bitmap caching.
5+
`StyledTextKit` is a declarative building and fast rendering attributed string library. It serves as a replacement to `NSAttributedString` and `UILabel` for background-thread size and bitmap caching.
66

77
## Features
88

@@ -13,17 +13,17 @@
1313

1414
## Installation
1515

16-
Just add `StyledText` to your Podfile and install. Done!
16+
Just add `StyledTextKit` to your Podfile and install. Done!
1717

1818
```ruby
19-
pod 'StyledText'
19+
pod 'StyledTextKit'
2020
```
2121

2222
## Usage
2323

2424
### Building `NSAttributedString`s
2525

26-
`StyledText` lets you build complex `NSAttributedString`s by combining:
26+
`StyledTextKit` lets you build complex `NSAttributedString`s by combining:
2727

2828
- Add `NSAttributedString`s or `String`s and continue using the previous attributes, saving you from repetitive `.font` and `.foregroundColor` styling
2929
- Intermix complex font traits like **bold** and _italics_ to get _**bold italics**_.
@@ -96,7 +96,7 @@ func didTap(view: StyledTextView, attributes: [NSAttributedStringKey: Any], poin
9696

9797
## Background Rendering
9898

99-
`StyledText` exists to do background sizing and rendering of text content so that scrolling large amounts of text is buttery smooth. The typical pipeline to do this is:
99+
`StyledTextKit` exists to do background sizing and rendering of text content so that scrolling large amounts of text is buttery smooth. The typical pipeline to do this is:
100100

101101
1. Get the current width and `UIContentSizeCategory`
102102
2. Go to a background queue

StyledText/CGImage+LRUCachable.swift renamed to Source/CGImage+LRUCachable.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CGImage+LRUCachable.swift
3-
// StyledText
3+
// StyledTextKit
44
//
55
// Created by Ryan Nystrom on 12/14/17.
66
// Copyright © 2017 Ryan Nystrom. All rights reserved.

StyledText/CGSize+LRUCachable.swift renamed to Source/CGSize+LRUCachable.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CGSize+LRUCachable.swift
3-
// StyledText
3+
// StyledTextKit
44
//
55
// Created by Ryan Nystrom on 12/14/17.
66
// Copyright © 2017 Ryan Nystrom. All rights reserved.

StyledText/CGSize+Utility.swift renamed to Source/CGSize+Utility.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// CGSize+Utility.swift
3-
// StyledText
3+
// StyledTextKit
44
//
55
// Created by Ryan Nystrom on 12/13/17.
66
// Copyright © 2017 Ryan Nystrom. All rights reserved.

StyledText/Font.swift renamed to Source/Font.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Font.swift
3-
// StyledText
3+
// StyledTextKit
44
//
55
// Created by Ryan Nystrom on 2/19/18.
66
// Copyright © 2018 Ryan Nystrom. All rights reserved.

StyledText/Hashable+Combined.swift renamed to Source/Hashable+Combined.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Hashable+Combined.swift
3-
// StyledText
3+
// StyledTextKit
44
//
55
// Created by Ryan Nystrom on 12/12/17.
66
// Copyright © 2017 Ryan Nystrom. All rights reserved.
File renamed without changes.

StyledText/LRUCache.swift renamed to Source/LRUCache.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
2-
// StyledTextRenderCache.swift
3-
// StyledText
2+
// StyledTextKitRenderCache.swift
3+
// StyledTextKit
44
//
55
// Created by Ryan Nystrom on 12/13/17.
66
// Copyright © 2017 Ryan Nystrom. All rights reserved.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// NSAttributedStringKey+StyledText.swift
3-
// StyledText
3+
// StyledTextKit
44
//
55
// Created by Ryan Nystrom on 5/29/18.
66
// Copyright © 2018 Ryan Nystrom. All rights reserved.
@@ -10,6 +10,6 @@ import Foundation
1010

1111
public extension NSAttributedStringKey {
1212

13-
static let highlight = NSAttributedStringKey("com.whoisryannystrom.styledtext.highlight")
13+
static let highlight = NSAttributedStringKey("com.whoisryannystrom.styledtextkit.highlight")
1414

1515
}

StyledText/NSLayoutManager+Render.swift renamed to Source/NSLayoutManager+Render.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// NSLayoutManager+Render.swift
3-
// StyledText
3+
// StyledTextKit
44
//
55
// Created by Ryan Nystrom on 12/13/17.
66
// Copyright © 2017 Ryan Nystrom. All rights reserved.

StyledText/StyledText.swift renamed to Source/StyledText.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
//
2-
// StyledText.swift
3-
// StyledText
2+
// StyledTextKit.swift
3+
// StyledTextKit
44
//
55
// Created by Ryan Nystrom on 12/12/17.
66
// Copyright © 2017 Ryan Nystrom. All rights reserved.
77
//
88

99
import Foundation
10+
import UIKit
1011

1112
public class StyledText: Hashable, Equatable {
1213

StyledText/StyledTextBuilder.swift renamed to Source/StyledTextBuilder.swift

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
//
2-
// StyledTextBuilder.swift
3-
// StyledText
2+
// StyledTextKitBuilder.swift
3+
// StyledTextKit
44
//
55
// Created by Ryan Nystrom on 12/12/17.
66
// Copyright © 2017 Ryan Nystrom. All rights reserved.
77
//
88

99
import Foundation
10+
import UIKit
1011

1112
public final class StyledTextBuilder: Hashable, Equatable {
1213

StyledText/StyledText.h renamed to Source/StyledTextKit.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
//
2-
// StyledText.h
3-
// StyledText
2+
// StyledTextKitKit.h
3+
// StyledTextKitKit
44
//
55
// Created by Ryan Nystrom on 12/12/17.
66
// Copyright © 2017 Ryan Nystrom. All rights reserved.
77
//
88

99
#import <UIKit/UIKit.h>
1010

11-
//! Project version number for StyledText.
12-
FOUNDATION_EXPORT double StyledTextVersionNumber;
11+
//! Project version number for StyledTextKit.
12+
FOUNDATION_EXPORT double StyledTextKitVersionNumber;
1313

14-
//! Project version string for StyledText.
15-
FOUNDATION_EXPORT const unsigned char StyledTextVersionString[];
14+
//! Project version string for StyledTextKit.
15+
FOUNDATION_EXPORT const unsigned char StyledTextKitVersionString[];
1616

1717
// In this header, you should import all the public headers of your framework using statements like #import <StyledText/PublicHeader.h>
1818

StyledText/StyledTextRenderCacheKey.swift renamed to Source/StyledTextRenderCacheKey.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
2-
// StyledTextRenderCacheKey.swift
3-
// StyledText
2+
// StyledTextKitRenderCacheKey.swift
3+
// StyledTextKit
44
//
55
// Created by Ryan Nystrom on 12/14/17.
66
// Copyright © 2017 Ryan Nystrom. All rights reserved.

0 commit comments

Comments
 (0)