Comments (2)
Hello, thanks for submitting this issue, and sorry for the late response. It is hard for me to see what is going on here. Would you mind sharing how you are programmatically starting Hyperion?
The Attributes Inspector works by capturing a snapshot of the current application window. If you are trying to programmatically start the Attributes Inspector you will want to do this after the action sheet has been dismissed. The snapshot that is captured intercepts interaction with your application window.
I am not sure if this will help but here is how we dismiss a plugin:
You could try something like this, but I am not sure if this will work for what you are trying to do:
if let hplugins = HyperionManager.sharedInstance().retrievePluginModules() {
for p in hplugins {
p.extension.snapshotContainer.overlayModule = nil
HyperionManager.sharedInstance().togglePluginDrawer()
}
}
from hyperion-ios.
Thank you. And sorry for lack of the information.
My code is here:
override func motionBegan(_ motion: UIEventSubtype, with event: UIEvent?) {
super.motionBegan(motion, with: event)
let mainAlert = UIAlertController(
title: "Debug Mode",
message: nil,
preferredStyle: .actionSheet)
mainAlert.addAction(
UIAlertAction(
title: "🌞 Launch Hyperion",
style: .default,
handler: { _ in
HyperionManager.sharedInstance()
.togglePluginDrawer()
}))
mainAlert.addAction(
UIAlertAction(
title: "Cancel",
style: .cancel,
handler: nil))
self.present(
mainAlert,
animated: true,
completion: nil)
}
And thanks to you, I wrote the following code:
if let hplugins = HyperionManager.sharedInstance().retrievePluginModules() {
for p in hplugins {
p.extension.snapshotContainer.overlayModule = nil
}
HyperionManager.sharedInstance().togglePluginDrawer()
HyperionManager.sharedInstance().togglePluginDrawer()
}
Double togglePluginDrawer()
is bit ugly. but at least it works. Thanks!
from hyperion-ios.
Related Issues (18)
- Create empty state for Hyperion plugin drawer. HOT 1
- Allow static libraries for CocoaPods. HOT 2
- Not Detecting TableViews HOT 9
- Why can't this tool run on below 9.0 devices? HOT 3
- Problems with building Hyperion on CI machines HOT 4
- Options cut off when slow animation plugin is at the bottom of the option list HOT 4
- NSAttributedStringKey is iOS 11+ only. Hyperion-iOS should support 9+. HOT 1
- CocoaPod / Carthage framework targets are incompatible
- UIWindow doesn't get deallocated HOT 1
- How to disable shake gesture? HOT 2
- Update Jazzy
- Swift Package? HOT 1
- XCFramework issue
- pretty accurate
- Can't Run Example Apps
- Inspect Color with Hex Code Format
- Privacy manifest required by Apple
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyperion-ios.