Fix up interface layout direction

This commit is contained in:
Robert Payne 2015-04-12 18:27:36 +12:00
parent 997e0e5970
commit 18851b7ecd
1 changed files with 17 additions and 0 deletions

View File

@ -20,3 +20,20 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE. // THE SOFTWARE.
#if os(iOS)
import UIKit
typealias InterfaceLayoutDirection = UIUserInterfaceLayoutDirection
#else
import AppKit
typealias InterfaceLayoutDirection = NSUserInterfaceLayoutDirection
#endif
/**
* Config that can be used to configure Snap
*/
public struct Config {
public static var interfaceLayoutDirection = InterfaceLayoutDirection.LeftToRight
}