라이브, 콘텐츠, 채널 공유하기
- 파라미터 키, 값 각각 인코딩 적용
This commit is contained in:
		
							
								
								
									
										17
									
								
								SodaLive/Sources/Utils/Utils.swift
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								SodaLive/Sources/Utils/Utils.swift
									
									
									
									
									
										Normal 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
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user