This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class OAO { | |
| let concurrent = DispatchQueue(label: "OAO", attributes: .concurrent) | |
| let arrayQueue = DispatchQueue(label: "OAO.array", attributes: .concurrent) | |
| // Thread-Safe | |
| private var _array: [Int] = [] | |
| private var array: [Int] { | |
| get { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protocol P { | |
| func test() | |
| } | |
| private struct Object { | |
| let index: Int | |
| } | |
| extension Object: P { | |
| fileprivate func test() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // CatWidget.swift | |
| // WidgetCollection | |
| // | |
| // Created by 李昇輯 on 2024/7/25. | |
| // | |
| import AppIntents | |
| import SwiftUI | |
| import WidgetKit |
OlderNewer