Skip to content

Commit 3096b02

Browse files
committed
Fix typo
1 parent 7b6b3a5 commit 3096b02

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

ExampleiOS/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1414
var window: UIWindow?
1515

1616

17-
private func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
17+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1818
// Override point for customization after application launch.
1919
return true
2020
}

ExampleiOS/ViewController.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@ class ViewController: UIViewController {
1717
override func viewDidLoad() {
1818
super.viewDidLoad()
1919

20+
/*let baseStyle = Style {
21+
$0.font = UIFont.systemFont(ofSize: self.baseFontSize)
22+
$0.lineSpacing = 2
23+
}
24+
25+
let linkStyle = Style {
26+
$0.font = UIFont.boldSystemFont(ofSize: self.baseFontSize)
27+
$0.linkURL = URLRepresentable.tagAttribute("href")
28+
}
29+
30+
let text = "Stile <a href=\"www.facebook.com/agencearcantide/photos/a.346501409312886/346503839312643/?type=3&theater\">link</a>"
31+
let s = StyleGroup(base: baseStyle, ["a" : linkStyle])
32+
self.textView?.attributedText = text.set(style: s)
33+
*/
34+
2035
let bodyHTML = try! String(contentsOfFile: Bundle.main.path(forResource: "file", ofType: "txt")!)
2136

2237
let headerStyle = Style {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ let style = Style {
367367
SwiftRichString also support some dynamic elements in style applied by reading specific tag parameter's value.
368368
The following example render the `linkURL` property by reading the value from the source string inside `href` tag (like in real HTML text):
369369

370-
```
370+
```swift
371371
let normal = Style {
372372
$0.color = UIColor.black
373373
}

SwiftRichString.xcodeproj/xcuserdata/daniele.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
ignoreCount = "0"
1111
continueAfterRunningActions = "No"
1212
filePath = "Sources/SwiftRichString/Style/Style.swift"
13-
timestampString = "569615006.0644979"
13+
timestampString = "575457649.036809"
1414
startingColumnNumber = "9223372036854775807"
1515
endingColumnNumber = "9223372036854775807"
1616
startingLineNumber = "302"

0 commit comments

Comments
 (0)