From 6c8c2987b5d622f0d02f2bdefeef06ee25c1ade9 Mon Sep 17 00:00:00 2001 From: Usman Azmat Date: Wed, 23 Oct 2019 13:46:27 +0200 Subject: [PATCH] added code to support full screen for ios 13 --- QueueITLib/IOSUtils.m | 2 +- QueueITLib/QueueITEngine.m | 4 +++- QueueITLibrary.podspec | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/QueueITLib/IOSUtils.m b/QueueITLib/IOSUtils.m index ee29b80..74cdb27 100644 --- a/QueueITLib/IOSUtils.m +++ b/QueueITLib/IOSUtils.m @@ -28,7 +28,7 @@ +(NSString*)getLibraryVersion{ } +(NSString*)getSdkVersion{ - return @"iOS-2.12.2"; + return @"iOS-2.12.3"; } @end diff --git a/QueueITLib/QueueITEngine.m b/QueueITLib/QueueITEngine.m index 753179e..a6fe522 100644 --- a/QueueITLib/QueueITEngine.m +++ b/QueueITLib/QueueITEngine.m @@ -130,7 +130,9 @@ -(void)showQueue:(NSString*)queueUrl targetUrl:(NSString*)targetUrl eventTargetUrl:targetUrl customerId:self.customerId eventId:self.eventId]; - + if (@available(iOS 13.0, *)) { + [queueWKVC setModalPresentationStyle: UIModalPresentationFullScreen]; + } if (self.delayInterval > 0) { dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(self.delayInterval * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self.host presentViewController:queueWKVC animated:YES completion:nil]; diff --git a/QueueITLibrary.podspec b/QueueITLibrary.podspec index 89c84b8..483788a 100644 --- a/QueueITLibrary.podspec +++ b/QueueITLibrary.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |s| s.name = "QueueITLibrary" -s.version = "2.12.2" +s.version = "2.12.3" s.summary = "Library for integrating Queue-it into an iOS app using web uI" s.homepage = "https://github.com/queueit/ios-webui-sdk" s.license = 'MIT' s.authors = { 'Queue-It' => 'https://queue-it.com' } s.platform = :ios, '8.3' -s.source = { :git => 'https://github.com/queueit/ios-webui-sdk.git', :tag => '2.12.2' } +s.source = { :git => 'https://github.com/queueit/ios-webui-sdk.git', :tag => '2.12.3' } s.requires_arc = true s.source_files = "QueueITLib/*.{h,m}" end