라이브, 콘텐츠, 채널 공유하기

- 파라미터 키, 값 각각 인코딩 적용
This commit is contained in:
Yu Sung
2025-03-07 03:53:33 +09:00
parent 4a0ccfa075
commit c8ea7acb2e
4 changed files with 75 additions and 34 deletions

View File

@@ -0,0 +1,17 @@
//
// Utils.swift
// SodaLive
//
// Created by klaus on 3/7/25.
//
import Foundation
func createOneLinkUrlWithURLComponents(params: [String: String]) -> String? {
var components = URLComponents(string: "https://voiceon.onelink.me/RkTm")
components?.queryItems = params.map { key, value in
URLQueryItem(name: key, value: value)
}
return components?.url?.absoluteString
}