Skip to content

Commit aa742ec

Browse files
authored
Bump version 1.0.0 (#28)
* Add demo app (#1) * Add readme (#2) * Created Tool bar (#3) * create editor view (#4) * Added missing files (#5) * Added bold style support (#6) * Support multiple style (#7) * Support header style (#8) * Updated read me (#9) * Update supported version (#10) * Added licence (#12) * update pod spec (#13) * Updated image alignment (#15) * Use font representable to support multi platform (#17) * Removed work flow temporory (#23) * Updated pod spec file (#25) * Added representable for font and it's subclasses (#26) * Updated source path (#29)
1 parent c49ab95 commit aa742ec

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3191
-12
lines changed

LICENSE.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Copyright (c) 2022 Canopas Software LLP
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
THE SOFTWARE.

Package.swift

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
1-
// swift-tools-version: 5.9
1+
// swift-tools-version: 5.5
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
55

66
let package = Package(
7-
name: "RichEditorSwiftui",
7+
name: "RichEditorSwiftUI",
8+
platforms: [
9+
//Add supported platforms here
10+
.iOS(.v14),
11+
],
812
products: [
913
// Products define the executables and libraries a package produces, making them visible to other packages.
1014
.library(
11-
name: "RichEditorSwiftui",
12-
targets: ["RichEditorSwiftui"]),
15+
name: "RichEditorSwiftUI",
16+
targets: ["RichEditorSwiftUI"]),
1317
],
1418
targets: [
15-
// Targets are the basic building blocks of a package, defining a module or a test suite.
19+
// Targets are the basic building blocks of a pack.age, defining a module or a test suite.
1620
// Targets can depend on other targets in this package and products from dependencies.
1721
.target(
18-
name: "RichEditorSwiftui"),
22+
name: "RichEditorSwiftUI"),
1923
.testTarget(
20-
name: "RichEditorSwiftuiTests",
21-
dependencies: ["RichEditorSwiftui"]),
24+
name: "RichEditorSwiftUITests",
25+
dependencies: ["RichEditorSwiftUI"]),
2226
]
2327
)

README.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# RichEditorSwiftUI
2+
3+
iOS WYSIWYG Rich editor for SwiftUI.
4+
5+
<p align="center">
6+
<img src="./docs/sample.gif" height="640" />
7+
</p>
8+
9+
10+
## Features
11+
12+
The editor offers the following <b>options</b>:
13+
14+
- [x] **Bold**
15+
- [x] *Italic*
16+
- [x] <u>Underline</u>
17+
- [x] Different Heading
18+
19+
## How to add in your project
20+
21+
Add the dependency
22+
23+
```
24+
import XYZRichEditor
25+
```
26+
27+
## How to use ?
28+
29+
```
30+
struct EditorView: View {
31+
@ObservedObject var state: RichEditorState = .ini(input: "Hello World")
32+
33+
var body: some View {
34+
RichEditor(state: _state)
35+
.padding(10)
36+
}
37+
}
38+
```
39+
# Demo
40+
[Sample](https://github.com/canopas/rich-editor-swiftui/tree/main/RichEditorDemo) app demonstrates how simple the usage of the library actually is.
41+
42+
# Bugs and Feedback
43+
For bugs, questions and discussions please use the [Github Issues](https://github.com/canopas/rich-editor-swiftui/issues).
44+
45+
46+
## Credits
47+
RichEditor for SwiftUI is owned and maintained by the [Canopas team](https://canopas.com/). For project updates and releases, you can follow them on Twitter at [@canopassoftware](https://twitter.com/canopassoftware).
48+
49+
RichTextKit: https://github.com/danielsaidi/RichTextKit
50+
51+
# Licence
52+
53+
```
54+
Copyright 2023 Canopas Software LLP
55+
56+
Licensed under the Apache License, Version 2.0 (the "License");
57+
You won't be using this file except in compliance with the License.
58+
You may obtain a copy of the License at
59+
60+
http://www.apache.org/licenses/LICENSE-2.0
61+
62+
Unless required by applicable law or agreed to in writing, software
63+
distributed under the License is distributed on an "AS IS" BASIS,
64+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
65+
See the License for the specific language governing permissions and
66+
limitations under the License.
67+
```

0 commit comments

Comments
 (0)