mirror of
https://github.com/jphong1111/awesome-ios-developer.git
synced 2025-07-20 04:38:48 +07:00
Update README.md
This commit is contained in:
@ -183,7 +183,9 @@ This extension makes JSON more structable
|
|||||||
|
|
||||||
## Useful Stuff
|
## Useful Stuff
|
||||||
|
|
||||||
### Show Preview in UIKit(Build UI with Code Base)
|
### Show Preview in UIKit(Build UI with Code Base) 👍 👍 👍 👍 👍
|
||||||
|
|
||||||
|
Copy this code and Paste into your controller
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
@ -206,3 +208,7 @@ struct ViewPreview: PreviewProvider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Enable canvas option like this
|
||||||
|
|
||||||
|
<img src="https://github.com/jphong1111/Useful_Swift/blob/main/Images/preview%20using%20canvas.png">
|
||||||
|
Reference in New Issue
Block a user