Skip to content

Commit d7f0ae8

Browse files
author
Semen Osipov
committed
ARGrowingTextView v-0.1
1 parent cb37051 commit d7f0ae8

18 files changed

Lines changed: 1700 additions & 0 deletions

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ARGrowingTextView/ARGrowingTextView.xcodeproj/project.pbxproj

Lines changed: 424 additions & 0 deletions
Large diffs are not rendered by default.

ARGrowingTextView/ARGrowingTextView.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

ARGrowingTextView/ARGrowingTextView.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ``ARGrowingTextView``
2+
3+
Multi-line/Autoresizing UITextView similar to SMS-app. The example project also even looks like Apple's version.
4+
5+
## Overview
6+
7+
<!--@START_MENU_TOKEN@-->Text<!--@END_MENU_TOKEN@-->
8+
9+
## Topics
10+
11+
### <!--@START_MENU_TOKEN@-->Group<!--@END_MENU_TOKEN@-->
12+
13+
- <!--@START_MENU_TOKEN@-->``Symbol``<!--@END_MENU_TOKEN@-->
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// ARGrowingTextView.h
3+
// ARGrowingTextView
4+
//
5+
// Created by Семён C. Осипов on 14.02.2023.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
//! Project version number for ARGrowingTextView.
11+
FOUNDATION_EXPORT double ARGrowingTextViewVersionNumber;
12+
13+
//! Project version string for ARGrowingTextView.
14+
FOUNDATION_EXPORT const unsigned char ARGrowingTextViewVersionString[];
15+
16+
// In this header, you should import all the public headers of your framework using statements like #import <ARGrowingTextView/PublicHeader.h>
17+
18+
@end
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//
2+
// ARAnimationContext.swift
3+
//
4+
//
5+
// Created by Семён C. Осипов on 16.08.2024.
6+
//
7+
8+
import Foundation
9+
10+
@objc public protocol ARAnimationContext {
11+
func animate(_ animation: @escaping () -> Void)
12+
}
13+
14+
public class ARAnimationContextImpl: ARAnimationContext {
15+
private var animationClosure: (() -> Void)?
16+
17+
public init() {}
18+
19+
public func animate(_ animation: @escaping () -> Void) {
20+
animationClosure = animation
21+
}
22+
23+
public func commitAnimation() {
24+
if let animationClosure = animationClosure {
25+
animationClosure()
26+
}
27+
}
28+
}
29+

0 commit comments

Comments
 (0)