Skip to content

Commit

Permalink
Rearranged the paragraphs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyome22 committed Oct 22, 2024
1 parent 8e8e643 commit 215d2e2
Showing 1 changed file with 50 additions and 50 deletions.
100 changes: 50 additions & 50 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,56 +19,6 @@ WebUI is a Swift package that provides WKWebView wrapped by SwiftUI.
- Compatible with iOS 16.4+
- Compatible with macOS 13.3+

## Documentation

[Latest (Swift-DocC)](https://cybozu.github.io/WebUI/documentation/webui/)

## Privacy Manifest

This library does not collect or track user information, so it does not include a PrivacyInfo.xcprivacy file.

## Installation

WebUI is available through [Swift Package Manager](https://github.com/apple/swift-package-manager/).

**Xcode**

1. File > Add Package Dependencies…
2. Search `https://github.com/cybozu/WebUI.git`.
<img src="./Media/add-package-dependencies.png" width="800px">
3. Add package and link `WebUI` to your application target.
<img src="./Media/add-package.png" width="600px">

**CLI**

1. Create `Package.swift` that describes dependencies.
```swift
// swift-tools-version: 5.9
import PackageDescription

let package = Package(
name: "SomeProduct",
products: [
.library(name: "SomeProduct", targets: ["SomeProduct"])
],
dependencies: [
.package(url: "https://github.com/cybozu/WebUI.git", exact: "2.0.0")
],
targets: [
.target(
name: "SomeProduct",
dependencies: [
.product(name: "WebUI", package: "WebUI")
]
)
]
)
```
2. Run the following command in Terminal.
```sh
$ swift package resolve
```

## Usage

Using `WebUI`, you can build a WebView in `SwiftUI` with simple APIs.
Expand Down Expand Up @@ -159,6 +109,56 @@ struct ContentView: View {
}
```

## Documentation

[Latest (Swift-DocC)](https://cybozu.github.io/WebUI/documentation/webui/)

## Installation

WebUI is available through [Swift Package Manager](https://github.com/apple/swift-package-manager/).

**Xcode**

1. File > Add Package Dependencies…
2. Search `https://github.com/cybozu/WebUI.git`.
<img src="./Media/add-package-dependencies.png" width="800px">
3. Add package and link `WebUI` to your application target.
<img src="./Media/add-package.png" width="600px">

**CLI**

1. Create `Package.swift` that describes dependencies.
```swift
// swift-tools-version: 5.9
import PackageDescription

let package = Package(
name: "SomeProduct",
products: [
.library(name: "SomeProduct", targets: ["SomeProduct"])
],
dependencies: [
.package(url: "https://github.com/cybozu/WebUI.git", exact: "2.0.0")
],
targets: [
.target(
name: "SomeProduct",
dependencies: [
.product(name: "WebUI", package: "WebUI")
]
)
]
)
```
2. Run the following command in Terminal.
```sh
$ swift package resolve
```

## Privacy Manifest

This library does not collect or track user information, so it does not include a PrivacyInfo.xcprivacy file.

## Demo

This repository includes demonstration app for iOS & macOS.
Expand Down

0 comments on commit 215d2e2

Please sign in to comment.