-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from hootsuite/artem/IOS-7181
IOS-7181 Add ability to use framework in app extensions
- Loading branch information
Showing
9 changed files
with
322 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright 2017 HootSuite Media Inc. | ||
// | ||
// This file is part of OwlBanners. The full OwlBanners copyright notice, | ||
// including terms governing use, modification, and redistribution, is | ||
// contained in the file LICENSE.md at the root of the source code distribution | ||
// tree. | ||
|
||
import UIKit | ||
|
||
/// Protocol that proxies required information for the banner to appear. These properties are present in `UIApplication` | ||
/// but in case when the framework is used within an app extension you will need to provide custom object that conforms | ||
/// to this protocol. See `OwlBannerDemo` app and `OwlBannerShareDemo` app extension for example usage. | ||
@objc public protocol ApplicationContext { | ||
|
||
var keyWindow: UIWindow? { get } | ||
var statusBarFrame: CGRect { get } | ||
var preferredContentSizeCategory: UIContentSizeCategory { get } | ||
var statusBarStyle: UIStatusBarStyle { get set } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.