mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 15:38:28 +02:00
Update RiotSwiftUI symbols to triple slash documentation style with function annotations.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user