swift
-
Information - 여행할 때에 사용자에게 필요한 것들을 제공하는 앱 - 여행지의 3일 동안의 날씨를 3시간 기준으로 제공 - 반경 1.5km 주변에 있는 (구글 지도 기준) 별점 4점 이상의 식당의 명단 - 한국어, 영어, 일본어의 번역 지원
[iOS] TripMateInformation - 여행할 때에 사용자에게 필요한 것들을 제공하는 앱 - 여행지의 3일 동안의 날씨를 3시간 기준으로 제공 - 반경 1.5km 주변에 있는 (구글 지도 기준) 별점 4점 이상의 식당의 명단 - 한국어, 영어, 일본어의 번역 지원
2024.01.22 -
XCTest Xcode Project의 unit test, 성능 test, UI test 케이스를 만들어 실행하는 Framework XCTest | Apple Developer Documentation Create and run unit tests, performance tests, and UI tests for your Xcode project. developer.apple.com ViewController.swift class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } } XCTestCase fina..
[iOS] XCTestXCTest Xcode Project의 unit test, 성능 test, UI test 케이스를 만들어 실행하는 Framework XCTest | Apple Developer Documentation Create and run unit tests, performance tests, and UI tests for your Xcode project. developer.apple.com ViewController.swift class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } } XCTestCase fina..
2024.01.14 -
SwiftLint 코드 규칙 도구 라이브러리 GitHub - realm/SwiftLint: A tool to enforce Swift style and conventions. A tool to enforce Swift style and conventions. Contribute to realm/SwiftLint development by creating an account on GitHub. github.com 1. PodFile에 추가, pod install pod 'SwiftLint' 2. [Project] Target → [Build Phases] → [New Run Script Phases] ${PODS_ROOT}/SwiftLint/swiftlint 3. 결과
[iOS] SwiftLintSwiftLint 코드 규칙 도구 라이브러리 GitHub - realm/SwiftLint: A tool to enforce Swift style and conventions. A tool to enforce Swift style and conventions. Contribute to realm/SwiftLint development by creating an account on GitHub. github.com 1. PodFile에 추가, pod install pod 'SwiftLint' 2. [Project] Target → [Build Phases] → [New Run Script Phases] ${PODS_ROOT}/SwiftLint/swiftlint 3. 결과
2024.01.14 -
이전 포스팅 [Swift] Dispatch (1) Dispatch (Framework) 시스템에서 관리하는 Dispatch 대기열에 작업을 제출하여 Multi Core 하드웨어에서 코드를 동시에 실행 GCD(Grand Central Dispatch)라고 알려진 Dispatch에서는 macOS, iOS, watchOS 및 tvOS의 멀티코 kimkhuna99.tistory.com sync(동기) vs async(비동기) → 작업을 보내는 시점에서 기다릴지 말지 serial(직렬) vs concurrent(동시) → Queue로 보내진 작업들을 여러 개의 Thread로 보낼지, 한 개의 Thread로 보낼 것 인지 DispatchQueue main queue - 오직 한개만 존재 - Serial 특성을 가진..
[Swift] Dispatch (2)이전 포스팅 [Swift] Dispatch (1) Dispatch (Framework) 시스템에서 관리하는 Dispatch 대기열에 작업을 제출하여 Multi Core 하드웨어에서 코드를 동시에 실행 GCD(Grand Central Dispatch)라고 알려진 Dispatch에서는 macOS, iOS, watchOS 및 tvOS의 멀티코 kimkhuna99.tistory.com sync(동기) vs async(비동기) → 작업을 보내는 시점에서 기다릴지 말지 serial(직렬) vs concurrent(동시) → Queue로 보내진 작업들을 여러 개의 Thread로 보낼지, 한 개의 Thread로 보낼 것 인지 DispatchQueue main queue - 오직 한개만 존재 - Serial 특성을 가진..
2024.01.07 -
class CustomView: UIView{ @IBInspectable var borderWidth: CGFloat { get{ return layer.borderWidth } set{ layer.borderWidth = newValue } } @IBInspectable var borderColor: UIColor?{ get{ return UIColor(cgColor: layer.borderColor!) } set{ layer.borderColor = newValue?.cgColor } } } Storyboard로 이동해서 UIView 생성 합니다. 출처 iOS ) 왕초보를 위한 IBInspectable / IBDesignable 사용해보기 안녕하세요 :) Zedd입니다.쓰려고 한 글들은 많지만...저..
[iOS] @IBInspectableclass CustomView: UIView{ @IBInspectable var borderWidth: CGFloat { get{ return layer.borderWidth } set{ layer.borderWidth = newValue } } @IBInspectable var borderColor: UIColor?{ get{ return UIColor(cgColor: layer.borderColor!) } set{ layer.borderColor = newValue?.cgColor } } } Storyboard로 이동해서 UIView 생성 합니다. 출처 iOS ) 왕초보를 위한 IBInspectable / IBDesignable 사용해보기 안녕하세요 :) Zedd입니다.쓰려고 한 글들은 많지만...저..
2024.01.06 -
LocalAuthentication 생체인식이나 이미 알고 있는 암호를 사용하여 사용자 인증 LocalAuthentication을 import 하고, LAcontext를 선언 import LocalAuthentication private var context = LAContext() 인증 시도 함수 var error: NSError? if context.canEvaluatePolicy(.deviceOwnerAuthentication, error: &error) { let reason = "Log in to your account" context.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: reason) { [weak self] isSucces..
[iOS] LocalAuthenticationLocalAuthentication 생체인식이나 이미 알고 있는 암호를 사용하여 사용자 인증 LocalAuthentication을 import 하고, LAcontext를 선언 import LocalAuthentication private var context = LAContext() 인증 시도 함수 var error: NSError? if context.canEvaluatePolicy(.deviceOwnerAuthentication, error: &error) { let reason = "Log in to your account" context.evaluatePolicy(.deviceOwnerAuthentication, localizedReason: reason) { [weak self] isSucces..
2024.01.06