본문 바로가기

**226

[SwiftUI] 버튼을 함수로 리턴하기 func buildButton(parameter : Parameter) -> Button버튼 함수의 형식 func buildButton() -> Button { return Button { } label: { Text("첫번째 버튼입니다.") } }이런식으로 label 내 요소가 존재한다면 안에 표시해주어야함 2023. 6. 26.
[UIkit] 음성출력예제 let speechSynth = AVSpeechSynthesizer() @IBAction func sayName(_ sender: Any) { //UI요소 let name: String = nameField.text ?? "" let message: String = "안녕하세요, \(name)님" helloLabel.text = message var utterance = AVSpeechUtterance(string: message) speechSynth.speak(utterance) } 2023. 6. 12.
[Swift] 기초 예제 5 (딕셔너리) //code1 var team = ["김윤","김찬","송성","윤영","정혜"] for i in team { print("\(i)") } //code2 var team = ["김윤","김찬","송성","윤영","정혜"] var nextTeam = ["이수","손윤","이제","박채","김하"] var addTeam = team+nextTeam for i in addTeam{ print("\(i)") } //code3 var teams : [String:String] = [ "김윤":"뉴진스", "김찬":"아이유", "송성":"윤성욱", "윤영":"10cm", "정혜":"장원영" ] for (key,value) in teams{ print("\(key):\(value)") } //code4 var tea.. 2023. 6. 8.
[React] Netlify 배포 참고자료 https://goddaehee.tistory.com/306 React 프로젝트, 정적 사이트 Netlify에 배포하기 React 프로젝트, 정적 사이트 Netlify에 배포하기 안녕하세요. 갓대희 입니다. 이번 포스팅에선 가볍게 React 프로젝트를 배포 해보려 합니다. :- ) Netlity는 GitHub, GitLab 등과 계정 연동 및 정적서버로 goddaehee.tistory.com 2023. 6. 5.