Update RiotSwiftUI symbols to triple slash documentation style with function annotations.

This commit is contained in:
David Langley
2021-09-13 11:36:33 +01:00
parent 886bb98eb1
commit 3d65fbd48f
39 changed files with 184 additions and 240 deletions

View File

@@ -17,18 +17,15 @@
import Foundation
import SwiftUI
/**
Used to calculate the frame of a view. Useful in situations as with `ZStack` where
you might want to layout views using alignment guides.
Example usage:
```
@State private var frame: CGRect = CGRect.zero
...
SomeView()
.background(ViewFrameReader(frame: $frame))
```
*/
/// Used to calculate the frame of a view.
///
/// Useful in situations as with `ZStack` where you might want to layout views using alignment guides.
/// ```
/// @State private var frame: CGRect = CGRect.zero
/// ...
/// SomeView()
/// .background(ViewFrameReader(frame: $frame))
/// ```
@available(iOS 14.0, *)
struct ViewFrameReader: View {
@Binding var frame: CGRect