Skip to content

Commit

Permalink
cleanup target membership, target depndencies, swift compiler version…
Browse files Browse the repository at this point in the history
…, bridging headers
  • Loading branch information
calimarkus committed Oct 23, 2023
1 parent eaed610 commit eaf37b7
Show file tree
Hide file tree
Showing 10 changed files with 147 additions and 84 deletions.

This file was deleted.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
buildImplicitDependencies = "NO">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
buildImplicitDependencies = "NO">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1500"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "NO">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7EA91CA8284EF3AF00F32F09"
BuildableName = "JDSBN_LayoutDebugging.app"
BlueprintName = "LayoutDebugging"
ReferencedContainer = "container:JDStatusBarNotificationExample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7EA91CA8284EF3AF00F32F09"
BuildableName = "JDSBN_LayoutDebugging.app"
BlueprintName = "LayoutDebugging"
ReferencedContainer = "container:JDStatusBarNotificationExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "7EA91CA8284EF3AF00F32F09"
BuildableName = "JDSBN_LayoutDebugging.app"
BlueprintName = "LayoutDebugging"
ReferencedContainer = "container:JDStatusBarNotificationExample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
buildImplicitDependencies = "NO">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@
// Use this file to import your target's public headers that you would like to expose to Swift.
//

#import "JDStatusBarNotification.h"
#ifndef JDStatusBarNotification_Bridging_Header_h
#define JDStatusBarNotification_Bridging_Header_h

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import <JDStatusBarNotification/JDStatusBarNotification.h>
#import "JDSBNotificationView.h"

#endif /* JDStatusBarNotification_Bridging_Header_h */
6 changes: 3 additions & 3 deletions JDStatusBarNotification/Public/JDStatusBarNotification.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Copyright (c) 2013 Markus. All rights reserved.
//

#import "JDStatusBarNotificationStyle.h"
#import "JDStatusBarNotificationPresenter.h"
#import "JDStatusBarNotificationPresenterPrepareStyleBlock.h"
#import <JDStatusBarNotification/JDStatusBarNotificationStyle.h>
#import <JDStatusBarNotification/JDStatusBarNotificationPresenter.h>
#import <JDStatusBarNotification/JDStatusBarNotificationPresenterPrepareStyleBlock.h>

Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

#import <UIKit/UIKit.h>

#import "JDStatusBarNotificationPresenterPrepareStyleBlock.h"
#import "JDStatusBarNotificationStyle.h"
#import <JDStatusBarNotification/JDStatusBarNotificationPresenterPrepareStyleBlock.h>
#import <JDStatusBarNotification/JDStatusBarNotificationStyle.h>

@class JDStatusBarNotificationPresenter;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
// Copyright 2023 Markus Emrich. All rights reserved.
//

import JDStatusBarNotification
import SwiftUI

extension NotificationPresenter {

func presentSwiftView(style: String? = nil,
public func presentSwiftView(style: String? = nil,
@ViewBuilder viewBuilder: () -> some View,
completion: NotificationPresenterCompletion? = nil) {
let controller = UIHostingController(rootView: viewBuilder())
controller.view.backgroundColor = .clear
self.present(customView: controller.view, style: style, completion: completion)
}

}

0 comments on commit eaf37b7

Please sign in to comment.