|
@@ -185,7 +185,7 @@ public class FloatingButton: UIView {
|
|
button_fb4.translatesAutoresizingMaskIntoConstraints = false
|
|
button_fb4.translatesAutoresizingMaskIntoConstraints = false
|
|
iconCC = json["icon"] as! String
|
|
iconCC = json["icon"] as! String
|
|
DispatchQueue.global().async {
|
|
DispatchQueue.global().async {
|
|
- let data = try? Data(contentsOf: URL(string: "https://\(Nexilis.ADDRESS)/filepalio/image/\(self.iconCC)")!) //make sure your image in this url does exist, otherwise unwrap in a if let check / try-catch
|
|
|
|
|
|
+ let data = try? Data(contentsOf: URL(string: "https://\(Nexilis.ADDRESS)/filepalio/image/\(json["icon"]!!)")!) //make sure your image in this url does exist, otherwise unwrap in a if let check / try-catch
|
|
DispatchQueue.main.async { [self] in
|
|
DispatchQueue.main.async { [self] in
|
|
if data != nil {
|
|
if data != nil {
|
|
button_fb4.setImage(UIImage(data: data!), for: .normal)
|
|
button_fb4.setImage(UIImage(data: data!), for: .normal)
|
|
@@ -195,6 +195,34 @@ public class FloatingButton: UIView {
|
|
|
|
|
|
groupView.addArrangedSubview(button_fb4)
|
|
groupView.addArrangedSubview(button_fb4)
|
|
button_fb4.addTarget(self, action: #selector(fb4Tap), for: .touchUpOutside)
|
|
button_fb4.addTarget(self, action: #selector(fb4Tap), for: .touchUpOutside)
|
|
|
|
+ } else if (json["package_id"] as! String).contains("_fb5") {
|
|
|
|
+ let newButton = UIButton()
|
|
|
|
+ newButton.heightAnchor.constraint(equalToConstant: 40).isActive = true
|
|
|
|
+ newButton.translatesAutoresizingMaskIntoConstraints = false
|
|
|
|
+ DispatchQueue.global().async {
|
|
|
|
+ let data = try? Data(contentsOf: URL(string: "https://\(Nexilis.ADDRESS)/filepalio/image/\(json["icon"]!!)")!) //make sure your image in this url does exist, otherwise unwrap in a if let check / try-catch
|
|
|
|
+ DispatchQueue.main.async {
|
|
|
|
+ if data != nil {
|
|
|
|
+ newButton.setImage(UIImage(data: data!), for: .normal)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ groupView.addArrangedSubview(newButton)
|
|
|
|
+ newButton.addTarget(self, action: #selector(bniBookingTap), for: .touchUpOutside)
|
|
|
|
+ } else if (json["package_id"] as! String).contains("_fb6") {
|
|
|
|
+ let newButton = UIButton()
|
|
|
|
+ newButton.heightAnchor.constraint(equalToConstant: 40).isActive = true
|
|
|
|
+ newButton.translatesAutoresizingMaskIntoConstraints = false
|
|
|
|
+ DispatchQueue.global().async {
|
|
|
|
+ let data = try? Data(contentsOf: URL(string: "https://\(Nexilis.ADDRESS)/filepalio/image/\(json["icon"]!!)")!) //make sure your image in this url does exist, otherwise unwrap in a if let check / try-catch
|
|
|
|
+ DispatchQueue.main.async {
|
|
|
|
+ if data != nil {
|
|
|
|
+ newButton.setImage(UIImage(data: data!), for: .normal)
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ groupView.addArrangedSubview(newButton)
|
|
|
|
+ newButton.addTarget(self, action: #selector(historyBroadcastTap), for: .touchUpOutside)
|
|
} else {
|
|
} else {
|
|
let newButton = UIButton()
|
|
let newButton = UIButton()
|
|
newButton.heightAnchor.constraint(equalToConstant: 40).isActive = true
|
|
newButton.heightAnchor.constraint(equalToConstant: 40).isActive = true
|
|
@@ -368,7 +396,7 @@ public class FloatingButton: UIView {
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -405,7 +433,7 @@ public class FloatingButton: UIView {
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -437,7 +465,7 @@ public class FloatingButton: UIView {
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(identifier: "editorPersonalVC") as! EditorPersonal
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(identifier: "editorPersonalVC") as! EditorPersonal
|
|
controller.isContactCenter = true
|
|
controller.isContactCenter = true
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -459,7 +487,7 @@ public class FloatingButton: UIView {
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -481,7 +509,7 @@ public class FloatingButton: UIView {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
let navigationController = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "contactChatNav") as! UINavigationController
|
|
let navigationController = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "contactChatNav") as! UINavigationController
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -503,7 +531,7 @@ public class FloatingButton: UIView {
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -526,7 +554,7 @@ public class FloatingButton: UIView {
|
|
}
|
|
}
|
|
let callContact = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "contactSID")
|
|
let callContact = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "contactSID")
|
|
let navigationController = UINavigationController(rootViewController: callContact)
|
|
let navigationController = UINavigationController(rootViewController: callContact)
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -548,7 +576,7 @@ public class FloatingButton: UIView {
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -570,7 +598,7 @@ public class FloatingButton: UIView {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
let navigationController = UINavigationController(rootViewController: QmeraCreateStreamingViewController())
|
|
let navigationController = UINavigationController(rootViewController: QmeraCreateStreamingViewController())
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -592,7 +620,7 @@ public class FloatingButton: UIView {
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -630,7 +658,7 @@ public class FloatingButton: UIView {
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
alert.addAction(UIAlertAction(title: "OK".localized(), style: UIAlertAction.Style.default, handler: {(_) in
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let controller = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "changeNS") as! ChangeNamePassswordViewController
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -653,7 +681,7 @@ public class FloatingButton: UIView {
|
|
}
|
|
}
|
|
let controller = HistoryBroadcastViewController()
|
|
let controller = HistoryBroadcastViewController()
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
let navigationController = UINavigationController(rootViewController: controller)
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|
|
@@ -670,7 +698,7 @@ public class FloatingButton: UIView {
|
|
|
|
|
|
@objc func qmeraLongPress() {
|
|
@objc func qmeraLongPress() {
|
|
let navigationController = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "settingNav") as! UINavigationController
|
|
let navigationController = AppStoryBoard.Palio.instance.instantiateViewController(withIdentifier: "settingNav") as! UINavigationController
|
|
- navigationController.modalPresentationStyle = .custom
|
|
|
|
|
|
+ navigationController.modalPresentationStyle = .fullScreen
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.tintColor = .white
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.barTintColor = .mainColor
|
|
navigationController.navigationBar.isTranslucent = false
|
|
navigationController.navigationBar.isTranslucent = false
|