Use _NS_4445425547 or NS🐞 for enables debuggging panel. When enabled it, a ladybug 🐞 menu appears in the app menu bar.
“4445425547” means DEBUG in Unicode table.
0x44=D
0x45=E
0x42=B
0x55=U
0x47=G
| // | |
| // VisionViewPlaygroundApp.swift | |
| // VisionViewPlayground | |
| // | |
| // Created by Steven Troughton-Smith on 21/09/2023. | |
| // | |
| import SwiftUI | |
| @main |
| // | |
| // V3DViewContainer.swift | |
| // Vision3DUIKit | |
| // | |
| // Created by Steven Troughton-Smith on 02/02/2024. | |
| // | |
| import UIKit | |
| import SwiftUI |
In iOS 16, Apple added UIHostingConfiguration, making it straightforward to use a SwiftUI view in instances of UICollectionViewCell and UITableViewCell. This gist shows how UIHostingConfiguration can be backported to iOS 14 by implementing a type that conforms to UIContentConfiguration.
Starting from iOS 16, we can use SwiftUI views in an instance of UICollectionView or UITableViewCell like this:
cell.contentConfiguration = UIHostingConfiguration {
ExampleCellContentView(color: Color(item.color), text: item.text)
}| // | |
| // ColorSchemeApp.swift | |
| // ColorScheme | |
| // | |
| // Created by Craig Hockenberry on 9/11/24. | |
| // | |
| import SwiftUI | |
| @main |
| import WidgetKit | |
| import SwiftUI | |
| @main | |
| struct WidgetExtMain { | |
| static func main() { | |
| if #available(iOS 18.0, *) { | |
| MyWidgets_18.main() | |
| } else { |
| // | |
| // OCXML.swift | |
| // Created by Marco Arment on 9/23/24. | |
| // | |
| // Released into the public domain. Do whatever you'd like with this. | |
| // No guarantees that it'll do anything, or do it correctly. Good luck! | |
| // | |
| import Foundation |