-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix extension_safe attr not passing copts (#878)
- Loading branch information
1 parent
b0e257d
commit ec08184
Showing
2 changed files
with
13 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
import c | ||
import WidgetKit | ||
|
||
public struct B { | ||
public static func run() { C.run() } | ||
public static func NATURE_OF_B() { B.run() } | ||
|
||
@available(iOS 14.0, *) | ||
public static func runExtension() -> [WidgetFamily] { | ||
if #available(iOSApplicationExtension 16.0, *) { | ||
[.accessoryCircular] | ||
} else { | ||
[] | ||
} | ||
} | ||
} |