OVERPAY
  • 홈
  • 태그
  • 방명록
  • 메뉴 닫기
  • 글작성
  • 방명록
  • 환경설정
    • OVERPAY (58)
      • 개발 (47)
        • ANDROID 안드로이드 (16)
        • SWIFT 아이폰 (30)
        • 정보 (1)
      • 무료 소프트웨어 (3)
      • 정보 (6)
  • 홈
  • 태그
  • 방명록
개발/SWIFT 아이폰

SwiftUI TextField 수정중일때 Borderline 변경

TextField를 포커싱 하거나 입력중일때 보더라인을 다른 색상으로 변경 CustomTextFieldStyle 생성 struct CustomTextFieldStyle: TextFieldStyle { var textColor: Color @Binding var isEditing: Bool func _body(configuration: TextField) -> some View { configuration .foregroundColor(textColor) .font(.system(size: 18)) .padding(10) .overlay(RoundedRectangle(cornerRadius: 5).stroke(isEditing ? textColor : Color.gray, lineWidth: 2)) } }..

2023. 7. 24. 14:08
개발/SWIFT 아이폰

SwiftUI Button 누루고 있을때 색상 변경

Button에 buttonStyle을 지정하여 버튼을 누루고 있을때만 색상 변경 CustomButtonStyle 생성 struct CustomButtonStyle: ButtonStyle { var textColor: Color func makeBody(configuration: Self.Configuration) -> some View { configuration.label .padding(EdgeInsets(top: 10, leading: 20, bottom: 10, trailing: 20)) .foregroundColor(configuration.isPressed ? textColor : Color.red) .background(configuration.isPressed ? Color.red : te..

2023. 7. 24. 14:03
개발/ANDROID 안드로이드

Java KT 원 내비 호출 및 경로 안내

안드로이드 KT 원 내비 호출 및 경로 안내 String uri = "ollehnavi://ollehnavi.kt.com/?method=routeguide&end=(37.5209436,127.1230074)"; Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); try { startActivity(intent); } catch (ActivityNotFoundException e) { // 앱이 설치되어 있지 않을 경우, 플레이스토어 설치 페이지로 이동 Uri playStoreUri = Uri.parse("market://details?id=kt.navi"); Intent playStoreIntent = new Intent(Intent.ACTI..

2023. 7. 21. 14:10
개발/SWIFT 아이폰

SwiftUI KT 원 내비 호출 및 경로 안내

KT 원 내비 호출 및 경로 안내 Info.plist LSApplicationQueriesSchemes 추가 및 Item에 ollehnavi 추가 버튼 생성 및 클릭 이벤트 설정 struct ContentView: View { var body: some View { VStack { Button(action: { buttonClicked() }) { Text("원 내비") .padding() .foregroundColor(.white) .background(Color.blue) .cornerRadius(10) } } } func buttonClicked() { let url = URL(string: "ollehnavi://ollehnavi.kt.com/navigation.req?method=routegui..

2023. 7. 21. 14:08
개발/SWIFT 아이폰

SwiftUI gradient 그라데이션 배경 설정

Gradient 설정후 백그라운드 지정 struct ContentView: View { let gradient = LinearGradient(colors: [.red, .green], startPoint: .topLeading, endPoint: .bottomTrailing) var body: some View { ZStack { Text("gradient") } .frame(maxWidth: .infinity, maxHeight: .infinity) .background(gradient) // 그라데이션을 배경으로 설정합니다. .edgesIgnoringSafeArea(.all) } }

2023. 7. 20. 14:30
개발/SWIFT 아이폰

SwiftUI 바텀 네비게이션 TabView 만들기

바텀 네비게이션 탭뷰 만들기 struct ContentView: View { @State private var selectedTab = 0 var body: some View { TabView(selection: $selectedTab) { // 첫 번째 탭의 내용 View1() .tabItem { Image(systemName: "house.fill") Text("홈") } .tag(0) // 두 번째 탭의 내용 View2() .tabItem { Image(systemName: "heart.fill") Text("좋아요") } .tag(1) // 세 번째 탭의 내용 View3() .tabItem { Image(systemName: "person.fill") Text("프로필") } .tag(2) } }..

2023. 7. 20. 10:51
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ···
  • 10
  • »

전체 카테고리

  • OVERPAY (58)
    • 개발 (47)
      • ANDROID 안드로이드 (16)
      • SWIFT 아이폰 (30)
      • 정보 (1)
    • 무료 소프트웨어 (3)
    • 정보 (6)
  • 최근 글
  • 최근 댓글

최근 글

최근댓글

반응형

전체 방문자

오늘
어제
전체

블로그 인기글

Powered by Privatenote Copyright © OVERPAY All rights reserved. TistoryWhaleSkin3.4

티스토리툴바