Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[draft] compare changes #109

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
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
5 changes: 3 additions & 2 deletions NextGrowingTextView/InternalTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

#if canImport(UIKit)
import Foundation
import UIKit

// MARK: - NextGrowingInternalTextView: UITextView

internal class InternalTextView: UITextView {
internal class InternalTextView: SymUITextView {

enum Action {
case didBeginEditing
Expand Down Expand Up @@ -114,3 +114,4 @@ internal class InternalTextView: UITextView {
}

}
#endif
6 changes: 4 additions & 2 deletions NextGrowingTextView/NextGrowingTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if canImport(UIKit)

import Foundation
import UIKit
Expand Down Expand Up @@ -91,7 +92,7 @@ open class NextGrowingTextView: UIView {
set { scrollable.actionHandler = newValue }
}

public final var textView: UITextView {
public final var textView: SymUITextView {
scrollable.textView
}

Expand Down Expand Up @@ -249,7 +250,7 @@ final class PlatterTextView: UIScrollView {
var actionHandler: (NextGrowingTextView.Action) -> Void = { _ in }
var textViewActionHandler: (InternalTextView.Action) -> Void = { _ in }

var textView: UITextView {
var textView: SymUITextView {
return _textView
}

Expand Down Expand Up @@ -480,3 +481,4 @@ final class PlatterTextView: UIScrollView {
return height
}
}
#endif
3 changes: 3 additions & 0 deletions NextGrowingTextView/SizingContainerView.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if canImport(UIKit)

import UIKit

final class SizingContainerView: UILabel /* To use `textRect` method */ {
Expand Down Expand Up @@ -135,3 +137,4 @@ final class SizingContainerView: UILabel /* To use `textRect` method */ {
}


#endif
Loading