Skip to content

Commit 2a857ca

Browse files
committed
Update README.md
1 parent 9803ba1 commit 2a857ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Live preview provided by SwiftUI (available only since macOS Catalina).
166166
> The only problem we have is that since names of views are the same in `UIKitPlus` and `SwiftUI` we should use aliases like `UButton` for `Button` or `UView` for `View`, so everything with `U` prefix. It is only necessary if you want to use live previews, otherwise there is no need to import `SwiftUI`, so no name conflicts.
167167
168168
```swift
169-
#if canImport(SwiftUI) && DEBUG
169+
#if canImport(SwiftUI)
170170
import SwiftUI
171171
@available(iOS 13.0, *)
172172
struct MyViewController_Preview: PreviewProvider, DeclarativePreview {
@@ -181,7 +181,7 @@ struct MyViewController_Preview: PreviewProvider, DeclarativePreview {
181181
#endif
182182
```
183183
```swift
184-
#if canImport(SwiftUI) && DEBUG
184+
#if canImport(SwiftUI)
185185
import SwiftUI
186186
@available(iOS 13.0, *)
187187
struct MyButton_Preview: PreviewProvider, DeclarativePreview {

0 commit comments

Comments
 (0)