-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c81e2d1
commit f8b7360
Showing
5 changed files
with
25 additions
and
11 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
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 |
---|---|---|
|
@@ -10,14 +10,16 @@ | |
import SwiftUI | ||
|
||
/// Unfortunately Xcode cannot seem to create Previews with our current build configuration | ||
/// seems related to using `MACH_O_TYPE=staticlib` for our frameworks | ||
/// https://twitter.com/_andersha/status/1405925636565262341 | ||
@available(iOS 13.0, *) | ||
struct OTRInviteViewController_Previews: PreviewProvider { | ||
static var previews: some View { | ||
Group { | ||
UIViewControllerPreview { | ||
OTRInviteViewController(account: OTRAccount(username: "[email protected]", accountType: .jabber)!) | ||
OTRInviteViewController(account: OTRXMPPAccount(username: "[email protected]", accountType: .jabber)!) | ||
} | ||
.previewDevice("iPhone 11 Pro Max") | ||
.previewDevice("iPhone 12 Pro Max") | ||
.previewLayout(.sizeThatFits) | ||
} | ||
} | ||
|
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