Skip to content

Commit

Permalink
Update plugin API (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyzanowskim authored Sep 14, 2023
1 parent 10748c8 commit 10810f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/krzyzanowskim/STTextView",
"state" : {
"revision" : "f462e18a20ebeb24e4653690335b0c4b29159491",
"version" : "0.8.12"
"revision" : "177460e2d7cdcc62d021d0a2eb5a99a1ae36367c",
"version" : "0.8.13"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ let package = Package(
.library(name: "TextFormationPlugin", targets: ["TextFormationPlugin"]),
],
dependencies: [
.package(url: "https://github.com/krzyzanowskim/STTextView", from: "0.8.12"),
.package(url: "https://github.com/krzyzanowskim/STTextView", from: "0.8.13"),
.package(url: "https://github.com/ChimeHQ/TextFormation", from: "0.8.1"),
.package(url: "https://github.com/ChimeHQ/TextStory", from: "0.8.0"),
],
Expand Down
2 changes: 1 addition & 1 deletion Sources/TextFormationPlugin/TextFormationPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public struct TextFormationPlugin: STPlugin {
}

@MainActor
public func setUp(context: Context) {
public func setUp(context: any Context) {
context.events.shouldChangeText { affectedRange, replacementString in
context.coordinator.shouldChangeText(in: affectedRange, replacementString: replacementString)
}
Expand Down

0 comments on commit 10810f3

Please sign in to comment.