long press improve
This commit is contained in:
parent
9881feb39b
commit
c1d4c5f5dc
@ -54,10 +54,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func pasteAndGo() {
|
@objc func pasteAndGo(_ sender: UILongPressGestureRecognizer) {
|
||||||
|
if sender.state == .ended {
|
||||||
(dvc as? DetailViewController)?.textView.text = UIPasteboard.general.string
|
(dvc as? DetailViewController)?.textView.text = UIPasteboard.general.string
|
||||||
(dvc as? DetailViewController)?.play()
|
(dvc as? DetailViewController)?.play()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func applicationWillResignActive(_ application: UIApplication) {
|
func applicationWillResignActive(_ application: UIApplication) {
|
||||||
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
"moleculeName":"barsPager"
|
"moleculeName":"barsCarouselIndicator"
|
||||||
|
|||||||
@ -25,6 +25,9 @@
|
|||||||
"molecule":{
|
"molecule":{
|
||||||
"moleculeName" : "carousel",
|
"moleculeName" : "carousel",
|
||||||
"loop":true,
|
"loop":true,
|
||||||
|
"pagingMolecule": {
|
||||||
|
"moleculeName":"barsCarouselIndicator"
|
||||||
|
},
|
||||||
"molecules" : [
|
"molecules" : [
|
||||||
{
|
{
|
||||||
"moleculeName" : "carouselItem",
|
"moleculeName" : "carouselItem",
|
||||||
@ -47,7 +50,7 @@
|
|||||||
"backgroundColor":"green",
|
"backgroundColor":"green",
|
||||||
"molecule" : {
|
"molecule" : {
|
||||||
"moleculeName" : "label",
|
"moleculeName" : "label",
|
||||||
"text" : "2"
|
"text" : "3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user