|
12 | 12 |
|
13 | 13 | ## Overview
|
14 | 14 |
|
15 |
| -SwiftMessages is a very flexible view and view controller presentation library for iOS. |
| 15 | +🔥🔥🔥 **NEW** SwiftUI support added! |
16 | 16 |
|
17 |
| -Message views and view controllers can be displayed at the top, bottom, or center of the screen, or behind navigation bars and tab bars. There are interactive dismiss gestures including a fun, physics-based one. Multiple background dimming modes. And a lot more! |
| 17 | +SwiftMessages is a very flexible view and view controller presentation library for UIKit and SwiftUI. |
18 | 18 |
|
19 |
| -🔥 Now supports displaying SwiftUI message views 🔥 |
| 19 | +Message views and view controllers can be displayed at the top, bottom, or center of the screen, or behind navigation bars and tab bars. There are interactive dismiss gestures including a fun, physics-based one. Multiple background dimming modes. And a lot more! |
20 | 20 |
|
21 | 21 | In addition to the numerous configuration options, SwiftMessages provides several good-looking layouts and themes. But SwiftMessages is also designer-friendly, which means you can fully and easily customize the view:
|
22 | 22 |
|
23 | 23 | * Copy one of the included nib files into your project and change it.
|
24 | 24 | * Subclass `MessageView` and add elements, etc.
|
25 |
| -* Or just supply an arbitrary instance of `UIView`. |
26 |
| - |
27 |
| -Try exploring [the demo app via appetize.io](http://goo.gl/KXw4nD) to get a feel for the extensive configurability of SwiftMessages. |
| 25 | +* Or just supply an arbitrary instance of `View` or `UIView`. |
28 | 26 |
|
29 | 27 | <p align="center">
|
30 | 28 | <img src="./Demo/demo.png" />
|
31 | 29 | </p>
|
32 | 30 |
|
33 |
| -<p align="center"> |
34 |
| - <a href="http://goo.gl/KXw4nD"><img src="./Demo/appetize.png" /></a> |
35 |
| -</p> |
36 |
| - |
37 |
| - |
38 | 31 | ## Installation
|
39 | 32 |
|
40 | 33 | ### Swift Package Manager
|
@@ -185,7 +178,7 @@ And check out our blog post [Elegant Custom UIViewController Transitioning](http
|
185 | 178 |
|
186 | 179 | Any of the built-in SwiftMessages views can be displayed by calling the SwiftMessages APIs from within observable object, a button action closure, etc. However, SwiftMessages can also display your custom SwiftUI views.
|
187 | 180 |
|
188 |
| -First, define a type that conforms to `MessageViewConvertible`. This will typically be a struct containing the message data: |
| 181 | +The first step is to define a type that conforms to `MessageViewConvertible`. This would typically be a struct containing the message data to display: |
189 | 182 |
|
190 | 183 |
|
191 | 184 | ````swift
|
|
0 commit comments