Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@ fastlane/test_output
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

# SwiftPM
.swiftpm
.vscode
15 changes: 15 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// swift-tools-version:5.9
import PackageDescription

let package = Package(
name: "YYText",
products: [
.library(name: "YYText", targets: ["YYText"]),
],
targets: [
.target(
name: "YYText",
path: "YYText"
),
]
)
1 change: 1 addition & 0 deletions YYText/Component/YYTextLayout.m
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,7 @@ + (NSArray *)layoutWithContainers:(NSArray *)containers text:(NSAttributedString
YYTextContainer *container = containers[i];
YYTextLayout *layout = [self layoutWithContainer:container text:text range:range];
if (!layout) return nil;
[layouts addObject:layout];
NSInteger length = (NSInteger)range.length - (NSInteger)layout.visibleRange.length;
if (length <= 0) {
range.length = 0;
Expand Down
1 change: 1 addition & 0 deletions YYText/include/NSAttributedString+YYText.h
1 change: 1 addition & 0 deletions YYText/include/NSParagraphStyle+YYText.h
1 change: 1 addition & 0 deletions YYText/include/UIPasteboard+YYText.h
1 change: 1 addition & 0 deletions YYText/include/UIView+YYText.h
1 change: 1 addition & 0 deletions YYText/include/YYLabel.h
1 change: 1 addition & 0 deletions YYText/include/YYText.h
1 change: 1 addition & 0 deletions YYText/include/YYTextArchiver.h
1 change: 1 addition & 0 deletions YYText/include/YYTextAsyncLayer.h
1 change: 1 addition & 0 deletions YYText/include/YYTextAttribute.h
1 change: 1 addition & 0 deletions YYText/include/YYTextContainerView.h
1 change: 1 addition & 0 deletions YYText/include/YYTextDebugOption.h
1 change: 1 addition & 0 deletions YYText/include/YYTextEffectWindow.h
1 change: 1 addition & 0 deletions YYText/include/YYTextInput.h
1 change: 1 addition & 0 deletions YYText/include/YYTextKeyboardManager.h
1 change: 1 addition & 0 deletions YYText/include/YYTextLayout.h
1 change: 1 addition & 0 deletions YYText/include/YYTextLine.h
1 change: 1 addition & 0 deletions YYText/include/YYTextMagnifier.h
1 change: 1 addition & 0 deletions YYText/include/YYTextParser.h
1 change: 1 addition & 0 deletions YYText/include/YYTextRubyAnnotation.h
1 change: 1 addition & 0 deletions YYText/include/YYTextRunDelegate.h
1 change: 1 addition & 0 deletions YYText/include/YYTextSelectionView.h
1 change: 1 addition & 0 deletions YYText/include/YYTextTransaction.h
1 change: 1 addition & 0 deletions YYText/include/YYTextUtilities.h
1 change: 1 addition & 0 deletions YYText/include/YYTextView.h
1 change: 1 addition & 0 deletions YYText/include/YYTextWeakProxy.h