diff --git a/Riot/Categories/UIDevice.swift b/Riot/Categories/UIDevice.swift index cf41401b0..4c9b18ec0 100644 --- a/Riot/Categories/UIDevice.swift +++ b/Riot/Categories/UIDevice.swift @@ -33,4 +33,10 @@ import UIKit return false } } + + /// Returns if the device is a Phone + var isPhone: Bool { + return userInterfaceIdiom == .phone + } + }