[ Launch: Force Layout NGS 2 ] cf99c866e15c6e2ea2ca by nicohaemhouts[ Launch: Force Layout NGS ] 5d0c397a427a75538639 by nicohaemhouts[ Launch: Force Layout NGS ] 367e5785f2d4a193c798 by nicohaemhouts
[ Launch: Tributary inlet ] a8ca0fd977797f83f202 by nicohaemhouts
[ Launch: Tributary inlet ] 0d6739453db1a4da22a4 by nicohaemhouts
[ Launch: Updating Area Chart ] 4c667295ffc0d1aff071 by nicohaemhouts[ Launch: Tributary inlet ] 0d6739453db1a4da22a4 by nicohaemhouts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git tag archive/<your-branch> <your-branch> | |
git push --tags | |
git push -d origin <your-branch> | |
git branch -D <your-branch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Using GeometryReader to find out the width of the parent is problematic when the parent does not have a height and depends on its children to give it height, e.g. VStack, ScrollView, etc GeometryReader takes up all the space it can get but if the parent has no height then GeometryReader will simply not have a height and your view will not render properly. ParentWidthReader uses a widely used workaround using PreferenceKey and a GeometryReader as a background thus bypassing the height problem. | |
*/ | |
import SwiftUI | |
struct ParentWidthReader<Content>: View where Content: View { | |
typealias ContentBuilder = (CGFloat) -> Content | |
@State var width: CGFloat = .infinity | |
let content: ContentBuilder | |
OlderNewer