Skip to content

Commit 78e0892

Browse files
Comments in PR
Update contents/Documentation/Tutorials.playground/Pages/How to use nef library?.xcplaygroundpage/Contents.swift Co-Authored-By: Tomás Ruiz-López <[email protected]> Update contents/Documentation/Tutorials.playground/Pages/How to use nef library?.xcplaygroundpage/Contents.swift Co-Authored-By: Tomás Ruiz-López <[email protected]> Update contents/Documentation/Tutorials.playground/Pages/How to use nef library?.xcplaygroundpage/Contents.swift Co-Authored-By: Tomás Ruiz-López <[email protected]>
1 parent c95c82e commit 78e0892

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@
3636

3737
## 💻 Installation
3838

39-
📟 **Using** [**Homebrew**](https://github.com/bow-swift/homebrew-nef) (preferred)
39+
#### 📟 Using [Homebrew](https://github.com/bow-swift/homebrew-nef) (preferred)
4040

4141
> It will warn you if there is a missing dependency and will provide guidance to install it.
4242
4343
<p align="center">
4444
<img src="assets/nef-installation.gif">
4545
</p>
4646

47-
📦 **Using** [**Swift Package Manager**](https://developer.apple.com/documentation/xcode/creating_a_swift_package_with_xcode)
47+
#### 📦 Using [Swift Package Manager](https://developer.apple.com/documentation/xcode/creating_a_swift_package_with_xcode)
4848

4949
`nef` can be consumed as a library in your **macOS project**.
5050

@@ -56,7 +56,7 @@
5656
5757
&nbsp;
5858

59-
🔌 **Using** [**Xcode Editor Extension**](https://github.com/bow-swift/nef-plugin)
59+
#### 🔌 Using [Xcode Editor Extension](https://github.com/bow-swift/nef-plugin)
6060

6161
Some of the `nef` features can be used directly in Xcode as an Extension. You can install it directly from [**App Store**](https://apps.apple.com/app/nef/id1479391704?mt=8).
6262

contents/Documentation/Tutorials.playground/Pages/How to use nef library?.xcplaygroundpage/Contents.swift

+5-10
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,18 @@
44
*/
55
// nef:end
66

7-
// nef:begin:hidden
8-
import Bow
9-
Nef.Playground.needsIndefiniteExecution(false)
10-
// nef:end
11-
127
/*:
138
## How to use `nef` library?
149

1510
As you know, from Xcode 11, you can integrate package dependencies using Swift Package Manager (SPM) to share code between projects or even use third-party libraries. You can read more about it in Apple's article [Adding package dependencies to your app](https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app)
1611

17-
In `nef` [version 0.4](https://github.com/bow-swift/nef/releases/tag/0.4.0), we have modularized the core so that you can use nef as in CLI as in your macOS projects. Taking advantage of the integration of SPM in Xcode, you can easily import `nef` in your project.
12+
Starting on `nef` [version 0.4](https://github.com/bow-swift/nef/releases/tag/0.4.0), we have modularized the core so that you can use nef as in library as in your macOS projects. Taking advantage of the integration of SPM in Xcode, you can easily import `nef` in your project.
1813

19-
Just choose like package repository `https://github.com/bow-swift/nef.git` and Xcode will do the rest.
14+
Just choose as package repository `https://github.com/bow-swift/nef.git` and Xcode will do the rest.
2015

21-
![](/assets/nef-xcode-library.png)
16+
![Add nef library to Xcode as a dependency](/assets/nef-xcode-library.png)
2217

23-
Once Xcode solves the dependencies, you can import wherever you want, as a native framework:
18+
Once Xcode resolves the dependencies, you can import wherever you want, as a native framework:
2419
```swift
2520
import nef
2621
```
@@ -106,6 +101,6 @@ If you need to render the content of a Playground page, or anything else that co
106101

107102
In the output path, you can find the result:
108103

109-
![](/assets/nef-library-example.png)
104+
![Example: use of nef library](/assets/nef-library-example.png)
110105

111106
*/

0 commit comments

Comments
 (0)