iOS21 SwiftUI Tutorial 2 - Creating and combining views 1 1. Create a new project and explore the canvasSwiftUI 튜토리얼 진행 시 macOS Sonoma 이상이어야 문제없이 진행 가능 튜토리얼대로 프로젝트를 생성 후 보게 되는 파일.@main 속성은 앱의 진입 포인트를 의미한다고 한다. Preview 기능도 있다. 역시 보면서 해야 맘이 편하다.. 2. Customize the text view source editor, canvas, inspectors 의 조합으로 코딩. 우선 Inspector 를 써보자 캔버스 화면 아래 마우스 커서 버튼을 누른 후 Command + Control 과 함께 클릭하면 아래 창이 뜬다. 그 중에 Show SwiftUI Inspector 클릭 이곳에서 수정하면 바로 관련된 코드가 추가.. 2024. 7. 3. SwiftUI Tutorial 1 - SwiftUI overview 애플 개발자 문서에서 SwiftUI Tutorial 을 시작하기 전에 정리해놓은 SwftUI의 개요 4가지 - Declarative syntax—Define which views appear onscreen using simple Swift structures. Flutter, React 와 같이 최근 프론트엔드 프레임워크들 사이에서 자주 채용되는 방식인 '선언적 구문'을 통한 프로그래밍 A compositional API—Quickly create and iterate your user interface using built-in views and modifiers. Compose more complex views by combining simpler views. compositional 이란 단어의.. 2024. 7. 2. [UIKit/Storyboard] UITableView didSelectRowAt 메서드 func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { print("hi")}테이블 뷰의 셀을 클릭해도 select 이벤트를 관리하는 위 메서드가 호출되지 않는다.. 일단 아래처럼 Outlet 연결은 되어 있다.class FlightListViewController : UIViewController, UITableViewDataSource, UITableViewDelegate { @IBOutlet weak var tableView: UITableView! 그리고 Delegate, DataSource 연결도 해놨다.override func viewDidLoad() { super.viewDid.. 2024. 4. 9. 이전 1 2 3 다음