Skip to content

Commit

Permalink
added code to support full screen for ios 13
Browse files Browse the repository at this point in the history
  • Loading branch information
usazqueueit committed Oct 23, 2019
1 parent dd9befa commit 6c8c298
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion QueueITLib/IOSUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ +(NSString*)getLibraryVersion{
}

+(NSString*)getSdkVersion{
return @"iOS-2.12.2";
return @"iOS-2.12.3";
}

@end
4 changes: 3 additions & 1 deletion QueueITLib/QueueITEngine.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
4 changes: 2 additions & 2 deletions QueueITLibrary.podspec
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6c8c298

Please sign in to comment.