Skip to content

Instantly share code, notes, and snippets.

View nRewik's full-sized avatar

Nutchaphon Rewik nRewik

View GitHub Profile
@nRewik
nRewik / 0_EqualWidthVStackChildren.md
Last active April 20, 2024 04:26
SwiftUI - Make the children in VStack equal width, and expand dynamically

Problem

Begin with VStack that contain texts as children.

struct TestView: View {
    
    var body: some View {
        VStack(alignment: .trailing) {
            Text("Hello, World!")
{
"todo": [
{
"id": "ffcedd58-bf77-4e90-a153-32e6723b16c4",
"title": "deleniti sapiente ut",
"description": "Ut odit sequi iste. Quaerat veritatis officia. Quas doloribus velit dolorem laborum totam.",
"userId": "d29a3b73-732d-4218-b9e2-9dc3b1c5c59b",
"createdAt": "2020-06-30T07:08:06.932Z"
},
{
{
"todo": [
{
"id": "0cd7190c-c99b-4716-a6ab-e36432aca084",
"title": "non labore quam",
"description": "Est enim dolor. Vitae cumque doloremque voluptas. Ex autem voluptas neque facilis deserunt eius fugit possimus molestias.",
"userId": "94375b4e-b500-4264-883f-81e920fccc58",
"createdAt": "2019-10-16T10:30:11.563Z"
},
{
@nRewik
nRewik / test.json
Last active December 3, 2020 06:40
TestJa
{
"3.2.4": "https://github.com/EkoCommunications/EkoMessagingSDK/releases/download/3.2.4/EkoChat.zip",
"3.2.5": "https://github.com/EkoCommunications/EkoMessagingSDK/releases/download/3.2.5/EkoChat.zip",
"3.2.6": "https://github.com/EkoCommunications/EkoMessagingSDK/releases/download/3.2.6/EkoChat.zip",
"3.2.7": "https://github.com/EkoCommunications/EkoMessagingSDK/releases/download/3.2.7/EkoChat.zip",
"4.0.0": "https://github.com/EkoCommunications/EkoMessagingSDK/releases/download/4.0.0/EkoChat.zip",
"4.2.0": "https://github.com/EkoCommunications/EkoMessagingSDK/releases/download/4.2.0/EkoChat.zip",
"4.3.0": "https://github.com/EkoCommunications/EkoMessagingSDK/releases/download/untagged-9c8ca455a4d43a293107/ekochat-4.3.0-dev.zip"
}