
남은 기기 용량을 알아야 할 일이 생겨서 찾아봤더니.. func deviceRemainingFreeSpaceInBytes() -> Int64? { let documentDirectory = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).last! guard let systemAttributes = try? FileManager.default.attributesOfFileSystem(forPath: documentDirectory), let freeSize = systemAttributes[FileAttributeKey.systemFreeSize] as? NSNumber else { // something fai..
iOS
2023. 11. 13. 11:14
TAG
- np-complete
- Swift
- 스위프트
- IOS
- Combine
- FLUTTER
- actor
- ios 13
- swift tutorial
- 스위프트 문법
- swift delegate
- Git
- github
- swift sort
- 제이슨 파싱
- SwiftUI
- UIBezierPath
- WidgetKit
- 회고
- WWDC
- np-hard
- iOS delegate
- swift3
- swift 공부
- Accessibility
- Xcode
- swift array
- fastlane
- 피아노
- WKWebView
글 보관함
반응형
- Total
- Today
- Yesterday