File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed
SwiftComponentsApp.xcodeproj
Sources/SwiftComponents/Button Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 267
267
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES;
268
268
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault;
269
269
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
270
- INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = " UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight" ;
271
- INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
270
+ INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
271
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown ";
272
272
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
273
273
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
274
274
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
304
304
"INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES;
305
305
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault;
306
306
"INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault;
307
- INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = " UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight" ;
308
- INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
307
+ INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
308
+ INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown ";
309
309
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
310
310
LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks";
311
311
"LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks";
Original file line number Diff line number Diff line change 1
1
import SwiftUI
2
+ import SwiftComponents
2
3
3
4
struct App : View {
4
5
var body : some View {
5
6
NavigationStack {
6
7
List {
8
+ Section {
9
+ Text ( " Discover more information about **SwiftComponents** on the website. " )
10
+ SUButton (
11
+ model: . init {
12
+ $0. title = " Open Website "
13
+ $0. isFullWidth = true
14
+ } ,
15
+ action: {
16
+ guard let url = URL ( string: " https://swiftcomponents.io " ) else { return }
17
+ UIApplication . shared. open ( url)
18
+ }
19
+ )
20
+ }
21
+
7
22
Section ( " Components " ) {
8
23
NavigationLinkWithTitle ( " Button " ) {
9
24
ButtonPreview ( )
Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ public struct SUButton: View {
32
32
// MARK: Body
33
33
34
34
public var body : some View {
35
- Button ( " " , action: { } )
36
35
Text ( self . model. title)
37
36
. font ( self . model. preferredFont. font)
38
37
. lineLimit ( 1 )
You can’t perform that action at this time.
0 commit comments