UBKAccessibilityKit
UBKAccessibilityKit copied to clipboard
Documentation: Installation instructions
The installation instructions in the README currently just describe how to include UBKAccessibilityKit in a project, assuming the kit is already installed for the project.
Is installation of the kit done as a Swift Package? CocoaPod? Download the git repository directly? …?
The documentation could do with clarification of that, please. Thanks!
I was looking for it too, it is missing.
I just downloaded the repo and dragged it into my project to get it up and running:
- Clone the repository
- Drag the nested folder
UBKAccessibilityKit/UBKAccessibilityKit
into my project and make sure copy items is checked - Follow the README instructions provided to add the override in AppDelegate
- Build and run
@joshualay I do not want to add a dependency in this way. I need a more clean way, SwiftPM, Pod or Carthage.
@joshualay I've installed in the same way as you described, but there I'm getting the error while building:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_UBKAccessibilityWindow", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I just downloaded the repo and dragged it into my project to get it up and running:
1. Clone the repository 2. Drag the nested folder `UBKAccessibilityKit/UBKAccessibilityKit` into my project and make sure copy items is checked  3. Follow the README instructions provided to add the override in AppDelegate 4. Build and run
why did you say nested folder? do i need to copy and paste the whole folder or just the one you have selected on the picture? and where do you paste it? in root? in ios folder?
Get it running like this
-
Clone the repository
-
With your project open in Xcode, go to “File > Add files to…”. And add the
UBKAccessibility.xcodeproj
. -
In your project's Targets, add
UBKAccessibilityKit.framework
as a dependency. -
Build
-
Add the override:
- If you are using Storyboard, in your
SceneDelegate.swift
file add the following code://Swift usage import UBKAccessibilityKit class SceneDelegate: UIResponder, UIWindowSceneDelegate { var customWindow: UBKAccessibilityWindow? var window: UIWindow? { get { customWindow = customWindow ?? UBKAccessibilityWindow(frame: UIScreen.main.bounds) customWindow!.enableInspector = true return customWindow } set { } } func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { window?.makeKeyAndVisible() } ... }
- If you are using ViewCode, in your
SceneDelegate.swift
file add the following code://Swift usage import UBKAccessibilityKit class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { guard let windowScene = (scene as? UIWindowScene) else { return } let window: UBKAccessibilityWindow = UBKAccessibilityWindow(windowScene: windowScene) window.enableInspector = true window.rootViewController = WelcomeViewController() self.window = window window.makeKeyAndVisible() } ... }
- Run