Skip to content

Instantly share code, notes, and snippets.

{
"type": "bubble",
"hero": {
"type": "image",
"url": "https://cdn.oneesports.gg/cdn-data/2023/04/LeagueofLegends_MSI2023_Theme_Defy-1024x576.jpg",
"size": "full",
"aspectRatio": "16:9"
},
"body": {
"type": "box",
{
"type": "bubble",
"body": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "text",
"text": "บัตรเครดิตของคุณ Son",
"weight": "bold",
{
"type": "bubble",
"hero": {
"type": "image",
"url": "https://s.isanook.com/ns/0/rp/rc/w670h402/yatxacm1w0/aHR0cHM6Ly9zLmlzYW5vb2suY29tL25zLzAvdWQvMTc2NC84ODIxNTc0L2xvdHRlcnktMTYtYXByaWwtMjAyMy5qcGc=.jpg",
"size": "full",
"aspectRatio": "20:13",
"aspectMode": "cover",
"action": {
"type": "uri",
{
"type": "bubble",
"size": "kilo",
"header": {
"type": "box",
"layout": "vertical",
"contents": []
},
"hero": {
"type": "image",
{
"type": "bubble",
"size": "mega",
"header": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "box",
"layout": "vertical",
{
"type": "bubble",
"header": {
"type": "box",
"layout": "vertical",
"contents": [
{
"type": "box",
"layout": "horizontal",
"contents": [
@sk-chanch
sk-chanch / CustomSecureTextField.swift
Created September 15, 2023 05:34
SwiftUI SecureTextField with onEditingChanged and onCommit
//
// CustomSecureTextField.swift
//
//
// Created by Chanchana Koedtho on 15/9/2566 BE.
//
import Foundation
import SwiftUI
import UIKit
@sk-chanch
sk-chanch / NSParagraphStyleExtension.swift
Last active January 24, 2022 04:36
NSParagraphStyleExtension
//
// NSParagraphStyleEx.swift
// AppStarterKit
//
// Created by Chanchana Koedtho on 20/1/2565 BE.
//
import Foundation
import UIKit
@sk-chanch
sk-chanch / LongPressGestureRecognizerExtension.swift
Last active March 31, 2021 11:27
RxSwift ObservableType UILongPressGestureRecognizer LongPressGesture inspired from https://gist.github.com/saoudrizwan/43ba7adad04ae28bbf8bd96431f7749b.
//
// LongPressGestureRecognizerExtension.swift
// AppStarterKit
//
// Created by Chanchana Koedtho on 31/3/2564 BE.
//
import Foundation
import RxSwift
@sk-chanch
sk-chanch / CustomRatingView.swift
Last active October 27, 2020 04:49
Simple Star Rating for swift
//
// CustomRatingView.swift
// AppStarterKit
//
// Created by MAC-KHUAD on 26/10/2563 BE.
// Copyright © 2563 megazy. All rights reserved.
//
import UIKit
import RxSwift