Skip to content

Commit 6818dcc

Browse files
committed
Update example project
1 parent 8b45059 commit 6818dcc

File tree

11 files changed

+122
-269
lines changed

11 files changed

+122
-269
lines changed

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Example.xcodeproj/project.pbxproj

+85-99
Large diffs are not rendered by default.

Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Example.xcodeproj/xcuserdata/f3dm76.xcuserdatad/xcschemes/xcschememanagement.plist

-22
This file was deleted.

Example/Example/AppDelegate.swift

-37
This file was deleted.

Example/Example/Base.lproj/LaunchScreen.storyboard

-26
This file was deleted.

Example/Example/ExampleApp.swift

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//
2+
// ExampleApp.swift
3+
// Example
4+
//
5+
// Created by Alisa Mylnikova on 08/10/2020.
6+
//
7+
8+
import SwiftUI
9+
10+
@main
11+
struct ExampleApp: App {
12+
var body: some Scene {
13+
WindowGroup {
14+
ContentView()
15+
}
16+
}
17+
}

Example/Example/Info.plist

+5-15
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,12 @@
2323
<key>UIApplicationSceneManifest</key>
2424
<dict>
2525
<key>UIApplicationSupportsMultipleScenes</key>
26-
<false/>
27-
<key>UISceneConfigurations</key>
28-
<dict>
29-
<key>UIWindowSceneSessionRoleApplication</key>
30-
<array>
31-
<dict>
32-
<key>UISceneConfigurationName</key>
33-
<string>Default Configuration</string>
34-
<key>UISceneDelegateClassName</key>
35-
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
36-
</dict>
37-
</array>
38-
</dict>
26+
<true/>
3927
</dict>
40-
<key>UILaunchStoryboardName</key>
41-
<string>LaunchScreen</string>
28+
<key>UIApplicationSupportsIndirectInputEvents</key>
29+
<true/>
30+
<key>UILaunchScreen</key>
31+
<dict/>
4232
<key>UIRequiredDeviceCapabilities</key>
4333
<array>
4434
<string>armv7</string>

Example/Example/SceneDelegate.swift

-64
This file was deleted.

ExytePopupView.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "ExytePopupView"
3-
s.version = "0.0.7"
3+
s.version = "0.0.8"
44
s.summary = "SwiftUI library for toasts and popups"
55

66
s.homepage = 'https://github.com/exyte/PopupView.git'

Source/PopupView.swift

+6-4
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@ extension View {
3232
)
3333
}
3434

35-
func applyIf<T: View>(_ condition: @autoclosure () -> Bool, apply: (Self) -> T) -> AnyView {
36-
if condition() {
37-
return AnyView(apply(self))
35+
@ViewBuilder
36+
func applyIf<T: View>(_ condition: Bool, apply: (Self) -> T) -> some View {
37+
if condition {
38+
apply(self)
3839
} else {
39-
return AnyView(self)
40+
self
4041
}
4142
}
43+
4244
}
4345

4446
public struct Popup<PopupContent>: ViewModifier where PopupContent: View {

0 commit comments

Comments
 (0)