Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Normalize & Rewrite #14

Open
wants to merge 337 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
337 commits
Select commit Hold shift + click to select a range
ebcf3cf
更新 EnvironmentValues.swift
KrLite Nov 4, 2024
0a9b61b
更新 LuminareList.swift
KrLite Nov 4, 2024
3b08237
更新 LuminarePicker.swift
KrLite Nov 4, 2024
3401c96
更新 Array+Extensions
KrLite Nov 4, 2024
a546cb4
Rename Array+Extensions to Array+Extensions.swift
KrLite Nov 4, 2024
add3c48
更新 Array+Extensions.swift
KrLite Nov 4, 2024
f88fcda
更新 LuminareList.swift
KrLite Nov 4, 2024
e70e807
更新 NSTableView+Extensions.swift
KrLite Nov 4, 2024
69ca7ef
更新 NSTableView+Extensions.swift
KrLite Nov 4, 2024
cef2b6b
更新 LuminareSection.swift
KrLite Nov 4, 2024
23a5abf
更新 LuminareCompactPicker.swift
KrLite Nov 4, 2024
dbd2354
更新 LuminareStepper.swift
KrLite Nov 4, 2024
16dc0ac
更新 LuminareTextField.swift
KrLite Nov 4, 2024
3dd43d6
更新 LuminarePopupView.swift
KrLite Nov 4, 2024
0dce15a
更新 View+Extensions.swift
KrLite Nov 4, 2024
92e58a8
更新 Color+Extensions.swift
KrLite Nov 4, 2024
5578443
更新 Color+Extensions.swift
KrLite Nov 4, 2024
c721b76
更新 LuminareBackgroundEffect.swift
KrLite Nov 4, 2024
f8dda71
更新 View+Extensions.swift
KrLite Nov 4, 2024
c40a921
更新 ScreenView.swift
KrLite Nov 4, 2024
a82a30f
更新 NSImage+Extensions.swift
KrLite Nov 4, 2024
faa30d8
更新 NSImage+Extensions.swift
KrLite Nov 4, 2024
b27eb4e
Rename Sources/Luminare/Utilities/ScreenView.swift to Sources/Luminar…
KrLite Nov 4, 2024
6ec01f7
Rename Sources/Luminare/Utilities/LuminareBackgroundEffect.swift to S…
KrLite Nov 4, 2024
f59e36e
Rename Sources/Luminare/Utilities/VisualEffectView.swift to Sources/L…
KrLite Nov 4, 2024
28c6b23
Rename LuminarePopupView.swift to LuminarePopup.swift
KrLite Nov 4, 2024
7c350ea
更新 LuminarePopover.swift
KrLite Nov 4, 2024
10babb6
更新 LuminareCompose.swift
KrLite Nov 4, 2024
c0b41b7
更新 LuminareSliderPickerCompose.swift
KrLite Nov 4, 2024
cd9247f
更新 LuminareValueAdjusterCompose.swift
KrLite Nov 4, 2024
1373df7
更新 Comparable+Extensions.swift
KrLite Nov 4, 2024
6dab562
更新 Comparable+Extensions.swift
KrLite Nov 4, 2024
fceae30
更新 Comparable+Extensions.swift
KrLite Nov 4, 2024
122563a
更新 ColorHueSliderView.swift
KrLite Nov 4, 2024
59d9d25
更新 ColorPickerModalView.swift
KrLite Nov 4, 2024
73732a8
更新 ColorSaturationBrightnessView.swift
KrLite Nov 4, 2024
ce94e7b
更新 RGBInputField.swift
KrLite Nov 4, 2024
1f87bd9
更新 LuminareColorPicker.swift
KrLite Nov 4, 2024
be4836a
更新 DividedVStack.swift
KrLite Nov 4, 2024
48024f4
更新 LuminareCompactPicker.swift
KrLite Nov 4, 2024
15984f3
更新 ForceTouch.swift
KrLite Nov 4, 2024
e7e0138
更新 ForceTouch.swift
KrLite Nov 4, 2024
a5e933a
更新 InfiniteScrollView.swift
KrLite Nov 4, 2024
13f6980
更新 LuminarePopup.swift
KrLite Nov 4, 2024
1254859
更新 LuminareButtonStyle.swift
KrLite Nov 4, 2024
fe200d3
更新 LuminareDividedStack.swift
KrLite Nov 4, 2024
dc0bede
更新 LuminarePane.swift
KrLite Nov 4, 2024
b3d4ca3
更新 LuminareView.swift
KrLite Nov 4, 2024
3d1bcb7
更新 LuminareSidebarSection.swift
KrLite Nov 4, 2024
1b08ab0
更新 LuminareSidebarTab.swift
KrLite Nov 4, 2024
c6937c4
capitalize RGB/HSB
KrLite Nov 4, 2024
aaacc33
Rename assets to Assets
KrLite Nov 4, 2024
1d96764
Capture previews screenshots + migrate to SwiftTesting
KrLite Nov 4, 2024
e546a30
Update previews screenshots
KrLite Nov 4, 2024
8c92a52
Docs & assets
KrLite Nov 4, 2024
40117b4
DocC: Main Window
KrLite Nov 4, 2024
f9a8bb9
DocC: Refine Main Window
KrLite Nov 4, 2024
ecbcbf7
Update
KrLite Nov 5, 2024
126199b
Update sidebar
KrLite Nov 5, 2024
3c0d1a2
DocC: more documentations...
KrLite Nov 5, 2024
9a25130
Update default popover edge to top
KrLite Nov 5, 2024
594a59d
Use values as ids in picker
KrLite Nov 5, 2024
1bd4182
Remove extension for String
KrLite Nov 5, 2024
b9b18d2
Fix paddings
KrLite Nov 6, 2024
86a65ee
Fix paddings
KrLite Nov 6, 2024
facc0ff
Fix image postfixes
KrLite Nov 7, 2024
a1e9296
Add swiftlint and fix
KrLite Nov 7, 2024
bcb8483
Merge branch 'docs' of https://github.com/Cement-Labs/Luminare into docs
KrLite Nov 7, 2024
58f29bb
Completely eliminate linter complains!
KrLite Nov 7, 2024
c0840cf
Compact variable declerations
KrLite Nov 7, 2024
e09f04c
Update LuminareButtonStyle+Previews.swift
KrLite Nov 7, 2024
5356e45
DocC: LuminareColorPicker, StringFormatStyle, StringFormatStyle.HexSt…
MrKai77 Nov 6, 2024
6b7cfcc
🔀 Merge branch `main` into `docs`
MrKai77 Nov 7, 2024
0dc3e4d
Extract new button style + use original picker
KrLite Nov 8, 2024
440bed8
Stablize stepper + normalize screenshots
KrLite Nov 8, 2024
1622bd0
Rewritten color picker
KrLite Nov 8, 2024
bbb4f64
Fix hue slider
KrLite Nov 8, 2024
9510da2
Update docs, rearrange folders
KrLite Nov 8, 2024
85e1e67
LuminareTextField
KrLite Nov 8, 2024
017d1c9
Fix some hoverables
KrLite Nov 8, 2024
8a0a52c
LuminareStepper
KrLite Nov 8, 2024
213b3ec
LuminareSection & LuminareStepper
KrLite Nov 8, 2024
e1bb695
Update LuminareCompactPicker.swift
KrLite Nov 9, 2024
a0517a8
LuminareCompactPicker
KrLite Nov 9, 2024
0f1c76e
LuminareSection initializers
KrLite Nov 9, 2024
150b107
LuminarePicker
KrLite Nov 9, 2024
19108be
LuminareList
KrLite Nov 9, 2024
538b07d
Unify LuminareCompactPicker segmented background
KrLite Nov 9, 2024
2f6c529
Improvements on LuminareCompactPicker
KrLite Nov 9, 2024
ee657de
Add LuminareButtonStyle previews
KrLite Nov 9, 2024
03f368e
LuminareButtonStyle
KrLite Nov 10, 2024
84f8c76
Remove LuminareList built-in swipe actions
KrLite Nov 10, 2024
d296865
Update LuminareList.md
KrLite Nov 10, 2024
1701f63
LuminareColorPicker
KrLite Nov 10, 2024
ac03c0d
value adjuster source
KrLite Nov 10, 2024
e3c7c6c
eliminate todos
KrLite Nov 10, 2024
27c5d1a
Fix picker button tint
KrLite Nov 10, 2024
34affd8
Add tint for picker data
KrLite Nov 10, 2024
5eb7971
Update LuminareSelectionData
KrLite Nov 10, 2024
330368e
Docs
KrLite Nov 10, 2024
a1f8659
Normalize tint usages
KrLite Nov 10, 2024
6a823c4
Fix force touch popover
KrLite Nov 10, 2024
81e22d2
Fix threshold handling
KrLite Nov 10, 2024
9e3fbad
Rename to `buttonCornerRadius`
KrLite Nov 10, 2024
f9d940b
Use bindings in InfiniteScrollView
KrLite Nov 12, 2024
5ad5b41
Backup
KrLite Nov 12, 2024
41686d2
Revert "Backup"
KrLite Nov 12, 2024
d57256a
Enhance InfiniteScrollView to support dragging
KrLite Nov 14, 2024
6e728ce
DocC: Scroll views
KrLite Nov 14, 2024
2af6759
DocC: filling up
KrLite Nov 15, 2024
223c00d
DocC: Auxiliary views
KrLite Nov 15, 2024
1d3e01c
DocC: LuminareSliderPickerCompose
KrLite Nov 15, 2024
248dabf
Renaming variables
KrLite Nov 15, 2024
329e7d8
Generalize control size for compose views
KrLite Nov 15, 2024
2e47617
Backup
KrLite Nov 15, 2024
10637cb
Add overflow to LuminareSidebar
KrLite Nov 15, 2024
03f1899
Fill sidebar background
KrLite Nov 15, 2024
d6183bf
Allow optional string in text field
KrLite Nov 24, 2024
cb976c5
Add public initializer for StringFormatStyle
KrLite Nov 24, 2024
60349a1
Add onRoundedValueChange
KrLite Nov 24, 2024
a11a2d9
Forgot this
KrLite Nov 24, 2024
77aac30
Fix onRoundedValueChange
KrLite Nov 24, 2024
495fbd4
Fix onRoundedValueChange triggering
KrLite Nov 24, 2024
e91dfa6
Update LuminareStepper.swift
KrLite Nov 24, 2024
124ebe3
Fix force touch glitches over threshold
KrLite Nov 24, 2024
a3fff4a
Support undo in LuminareTextField
KrLite Nov 24, 2024
b9c4a54
Unnecessary undo manager...
KrLite Nov 24, 2024
2de9628
This should avoid transitive SwiftLint
KrLite Nov 24, 2024
a9ae757
Can this finally fix SwiftLint issues?
KrLite Nov 24, 2024
dd7d9b7
Fine. Remove SwiftLint.
KrLite Nov 24, 2024
614020b
Merge pull request #8 from Cement-Labs/docs
KrLite Nov 26, 2024
4d0fdf5
Format with SwiftFormat
KrLite Nov 28, 2024
c964f49
Merge pull request #9 from Cement-Labs/docs
KrLite Nov 28, 2024
9ee9a26
Merge pull request #10 from Cement-Labs/main
KrLite Nov 28, 2024
a2e38d2
Migrate to use @Entry
KrLite Nov 28, 2024
b2e27e3
Fully migrate to environment value based initializers
KrLite Nov 28, 2024
5f0f7a1
Merge branch 'environments' of https://github.com/Cement-Labs/Luminar…
KrLite Nov 28, 2024
b3fcc8e
format
KrLite Nov 28, 2024
433ea89
List update!
KrLite Nov 28, 2024
5d57bfc
Fix list header paddings
KrLite Nov 28, 2024
5f55821
Update LuminareList.swift
KrLite Nov 28, 2024
d87e6d4
Allow custom item height in list
KrLite Nov 28, 2024
4d161d9
Fix list item border
KrLite Nov 28, 2024
14ea01c
Fix list item background
KrLite Nov 28, 2024
cbdf9b5
Update Package.swift
KrLite Nov 29, 2024
e276c14
Remove `swiftlint` comments
KrLite Nov 30, 2024
a256250
Extract and decompose
KrLite Nov 30, 2024
acd6a0a
Fix LuminareList
KrLite Nov 30, 2024
e01da72
Fix button style initializers
KrLite Dec 1, 2024
c6287e0
Missing initializers
KrLite Dec 1, 2024
2d46b13
Add maxWidth for LuminareSection
KrLite Dec 1, 2024
27fb141
Update enums & list section header
KrLite Dec 2, 2024
865fcd0
Update list logic
KrLite Dec 2, 2024
3087c8f
Update list styles
KrLite Dec 3, 2024
614d783
Fix text field corner radius
KrLite Dec 3, 2024
1e3c69e
Fix list borderless selection background
KrLite Dec 3, 2024
c7e730d
Update LuminareList.swift
KrLite Dec 3, 2024
fe0c1d6
LuminareList fully overhaul
KrLite Dec 3, 2024
3735f06
Update button material
KrLite Dec 3, 2024
aa82e05
Update LuminareSection.swift
KrLite Dec 3, 2024
632bb30
Update LuminareSection.swift
KrLite Dec 3, 2024
d1033ed
Update LuminareSection.swift
KrLite Dec 3, 2024
65235c9
Update LuminareSection.swift
KrLite Dec 3, 2024
c172b98
Update LuminareSection.swift
KrLite Dec 3, 2024
a329650
Update LuminareButtonStyle.swift
KrLite Dec 3, 2024
022e132
Merge pull request #11 from Cement-Labs/environments
KrLite Dec 4, 2024
ce59e8d
Update environments
KrLite Dec 5, 2024
32ccb6e
SwiftFormat
KrLite Dec 5, 2024
9b472e7
Delete .swiftlint.yml
KrLite Dec 5, 2024
ba983a8
Fix multiple problems
KrLite Dec 6, 2024
48c4142
Fully update list logic...
KrLite Dec 6, 2024
03f4bae
Update LuminareList+Initializers.swift
KrLite Dec 6, 2024
dbb3317
Update LuminareList.swift
KrLite Dec 6, 2024
d26e4b3
Update
KrLite Dec 6, 2024
d02208c
Add content margins to list
KrLite Dec 6, 2024
8495ef0
Merge pull request #12 from Cement-Labs/environments
KrLite Dec 6, 2024
f457726
Use `Color` instead of closure
KrLite Dec 7, 2024
f84ef64
Overhaul button styles
KrLite Dec 7, 2024
707e56e
Color picker...
KrLite Dec 7, 2024
5a24d86
Refined color picker
KrLite Dec 7, 2024
a5f2149
Restore button style usages
KrLite Dec 7, 2024
ca9e196
Some rename
KrLite Dec 7, 2024
baec7e4
Update button style declerations
KrLite Dec 8, 2024
f590091
Backup
KrLite Dec 8, 2024
71cd5cb
Backup
KrLite Dec 8, 2024
40bbf12
OK...
KrLite Dec 8, 2024
587c855
Backup
KrLite Dec 8, 2024
60306a6
Modals working well
KrLite Dec 8, 2024
42319ae
Format
KrLite Dec 8, 2024
d7daefd
Merge branch 'environments'
KrLite Dec 8, 2024
6fa057d
Backup
KrLite Dec 8, 2024
8382c79
Revert "Backup"
KrLite Dec 8, 2024
a7dfa3e
Finally, fix LuminareStepper!
KrLite Dec 8, 2024
d980bc6
More environments
KrLite Dec 8, 2024
6d73c6c
Made changes to modal related environments
KrLite Dec 8, 2024
4b5bd78
Format
KrLite Dec 8, 2024
9e3fe29
Make public
KrLite Dec 8, 2024
ff74ff2
Implement `VariadicViews`
KrLite Dec 10, 2024
7980ebc
Make materialized background more opaque
KrLite Dec 14, 2024
81529f9
Trying to fix color picker
KrLite Dec 14, 2024
82b8f9f
Fully upgraded modal views (sheet & popover)
KrLite Dec 14, 2024
44df6c0
Fully migrate to `RectangleCornerRadii`
KrLite Dec 14, 2024
7ff349e
Merge branch 'environments'
KrLite Dec 14, 2024
4cf0385
Format code
KrLite Dec 14, 2024
24d75e3
🎨 Reformat comments
KrLite Dec 15, 2024
8db6158
SwiftFormat & fix commit head
KrLite Dec 15, 2024
33e5ea3
📝 DocC: Re-take all Xcode Previews screenshots
KrLite Dec 15, 2024
d7c886a
🎨 Split public and internal extensions
KrLite Dec 15, 2024
7b97e4f
🎨 SwiftFormat
KrLite Dec 15, 2024
342d740
🎨 Add `Luminare` to file headers
KrLite Dec 15, 2024
6751a60
🎨 Update license in readme & remove old table
KrLite Dec 15, 2024
bc477d7
✨ Implement `EventMonitorManager` logic
KrLite Dec 15, 2024
f9182ba
🎨 SwiftFormat
KrLite Dec 15, 2024
50ca437
🐛 Hotfix: Fix `id` redeclaration in `LuminareList`
KrLite Dec 16, 2024
cde9cbc
🎨 SwiftFormat
KrLite Dec 16, 2024
5ef2343
✨ Trying to update `LuminareSection`
KrLite Dec 16, 2024
9c1d5ed
✨ Introduce `LuminareSectionLayout`
KrLite Dec 16, 2024
27cda94
✨ Improve `LuminareSection` layout logic
KrLite Dec 16, 2024
c149544
✨ Introduce `.automatic` `LuminareCompose` layout
KrLite Dec 16, 2024
ebce8fc
✨ Introduce `titlebarHeight` & `spacing` environments
KrLite Dec 16, 2024
a354837
✨ Improve layout priority logic in `LuminareCompose`
KrLite Dec 16, 2024
0288184
🚑️ Implement `SwiftUIIntrospect` to correctly handle `LuminareList` s…
KrLite Dec 16, 2024
d16df4f
🎨 SwiftFormat
KrLite Dec 16, 2024
3f58c59
✨ Introduce `LuminareToggleCompose` & `LuminareButtonCompose`
KrLite Dec 17, 2024
aa73c05
🚑️ Make them public
KrLite Dec 17, 2024
538d974
✨ Update `LuminareSection`
KrLite Dec 17, 2024
82da891
✨ Roughly implement `LuminareFormStyle`
KrLite Dec 17, 2024
1be0a11
✨ Clip pane content
KrLite Dec 17, 2024
7d687cc
🐛 Fix `LuminarePane`
KrLite Dec 17, 2024
6dfdb24
✨ Implement min / max frame for `LuminareView`
KrLite Dec 17, 2024
f4685fa
🐛 Convenience init for `LuminareView`
KrLite Dec 17, 2024
2944ea3
🐛 Fix frames not applied
KrLite Dec 17, 2024
4f5cae5
✨ Meet `LuminareTextField`!
KrLite Dec 18, 2024
19cbe69
🐛 Fix `LuminareTextEditor` wrongly consumed space
KrLite Dec 18, 2024
10dcc73
✨ Use `Text.Case` & implement more environments
KrLite Dec 18, 2024
cfcc584
🐛 Fix background handling
KrLite Dec 18, 2024
9b2f592
♻️ Refactor environment values, implement `LuminareManagerProtocol`
KrLite Dec 19, 2024
9a6d66c
🎨 SwiftFormat
KrLite Dec 19, 2024
b1630a1
🚑️ Fix: Corrupted view extensions
KrLite Dec 19, 2024
239f177
🚑️ Fix content margins handling
KrLite Dec 19, 2024
1e10d9c
🚑️ Fix aspect ratio handling
KrLite Dec 19, 2024
89bf424
🐛 Fix aspect ratio again
KrLite Dec 19, 2024
7774bc8
🐛 Fix aspect ratio again
KrLite Dec 19, 2024
5fdbdfb
🚑️ Again, fix aspect ratio handling
KrLite Dec 19, 2024
ce1254e
🐛 Trying to improve window sizing
KrLite Dec 20, 2024
7779721
🎨 Make environment values clearer, add some comments
KrLite Dec 20, 2024
51fa0e8
🎨 Remove bell curve normalization because the max value is already 1
KrLite Dec 30, 2024
cb999e1
♻️ Make auxiliary closures optional
KrLite Dec 31, 2024
d766bfa
✏️ `Inout` → `Input`
KrLite Jan 4, 2025
8532288
♻️ Refactor popover logic, adding hide delay for hover trigger
KrLite Jan 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"originHash" : "ff1eab428ce698b2ba4197094f0d0f7530bfb7aea8c9f2c9e812a1bdcea27c19",
"pins" : [
{
"identity" : "swift-docc-plugin",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-docc-plugin",
"state" : {
"revision" : "85e4bb4e1cd62cec64a4b8e769dcefdf0c5b9d64",
"version" : "1.4.3"
}
},
{
"identity" : "swift-docc-symbolkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/swiftlang/swift-docc-symbolkit",
"state" : {
"revision" : "b45d1f2ed151d057b54504d653e0da5552844e34",
"version" : "1.0.0"
}
},
{
"identity" : "swiftui-introspect",
"kind" : "remoteSourceControl",
"location" : "https://github.com/siteline/swiftui-introspect",
"state" : {
"revision" : "807f73ce09a9b9723f12385e592b4e0aaebd3336",
"version" : "1.3.0"
}
},
{
"identity" : "swiftui-variadic-views",
"kind" : "remoteSourceControl",
"location" : "https://github.com/lorenzofiamingo/swiftui-variadic-views",
"state" : {
"revision" : "af67d0e85bd2b499fbfb4cda834117e7c52b12b0",
"version" : "1.0.0"
}
}
],
"version" : 3
}
15 changes: 10 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

Expand All @@ -9,17 +8,23 @@ let package = Package(
.macOS(.v13)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "Luminare",
targets: ["Luminare"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/lorenzofiamingo/swiftui-variadic-views", from: "1.0.0"),
.package(url: "https://github.com/siteline/swiftui-introspect", from: "1.0.0")
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "Luminare"
name: "Luminare",
dependencies: [
.product(name: "VariadicViews", package: "swiftui-variadic-views"),
.product(name: "SwiftUIIntrospect", package: "swiftui-introspect")
]
),
.testTarget(
name: "LuminareTests",
Expand Down
81 changes: 2 additions & 79 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,89 +21,12 @@ To add Luminare to your Xcode project, you can use Swift Package Manager (SPM).

Luminare offers a variety of components, organized for easy reference:

<table>
<!-- Headers -->
<tr>
<th>Component Type</th>
<th>Component</th>
<th>Preview</th>
</tr>
<!-- Buttons -->
<tr>
<th rowspan="4">Buttons</th>
<td><code>LuminareButtonStyle</code></td>
<td align="right"><img src="assets/LuminareButtonStyle.png" width="300"></td>
</tr>
<tr>
<td><code>LuminareDestructiveButtonStyle</code></td>
<td align="right"><img src="assets/LuminareDestructiveButtonStyle.png" width="150"></td>
</tr>
<tr>
<td><code>LuminareCompactButtonStyle</code></td>
<td align="right"><img src="assets/LuminareCompactButtonStyle.png" width="300"></td>
</tr>
<tr>
<td><code>LuminareCosmeticButtonStyle</code></td>
<td align="right"><img src="assets/LuminareCosmeticButtonStyle.png" width="300"></td>
</tr>
<!-- Toggle Buttons -->
<tr>
<th rowspan="1">Toggle Buttons</th>
<td><code>LuminareToggle</code></td>
<td align="right"><img src="assets/LuminareToggle.png" width="300"></td>
</tr>
<!-- Value Adjusters -->
<tr>
<th rowspan="1">Value Adjusters</th>
<td><code>LuminareValueAdjuster</code></td>
<td align="right"><img src="assets/LuminareValueAdjuster.png" width="300"></td>
</tr>
<!-- Pickers -->
<tr>
<th rowspan="2">Pickers</th>
<td><code>LuminarePicker</code></td>
<td align="right"><img src="assets/LuminarePicker.png" width="300"></td>
</tr>
<tr>
<td><code>LuminareSliderPicker</code></td>
<td align="right"><img src="assets/LuminareSliderPicker.png" width="300"></td>
</tr>
<!-- Color Pickers -->
<tr>
<th rowspan="1">Color Pickers</th>
<td><code>LuminareColorPicker</code></td>
<td align="right"><img src="assets/LuminareColorPicker.png" width="300"></td>
</tr>
<!-- Text Fields -->
<tr>
<th rowspan="1">Text Fields</th>
<td><code>LuminareTextField</code></td>
<td align="right"><img src="assets/LuminareTextField.png" width="300"></td>
</tr>
<!-- Modal Views -->
<tr>
<th rowspan="1">Modal Views</th>
<td><code>.luminareModal(...)</code></td>
<td align="right"><img src="assets/LuminareModal.png" width="300"></td>
</tr>
<!-- Sections -->
<tr>
<th rowspan="1">Sections</th>
<td><code>LuminareSection</code></td>
<td align="right"><img src="assets/LuminareSection.png" width="300"></td>
</tr>
<!-- Lists -->
<tr>
<th rowspan="1">Lists</th>
<td><code>LuminareList</code></td>
<td align="right"><img src="assets/LuminareList.png" width="300"></td>
</tr>
</table>
*TODO: Add the table back.*

## Example Usage

Luminare can be used pretty much exactly like how you would use SwiftUI. For a practical example, please check [Loop's code](https://github.com/MrKai77/Loop/blob/1b6e4f8555be2dfaf4e0ae0225224d71d36a5078/Loop/Luminare/Settings/Behavior/BehaviorConfiguration.swift#L97).

## License

Luminare is released under **GNU General Public License v3.0.** See the [LICENSE](LICENSE) file in the repository for the full license text.
Luminare is released under **BSD 3-Clause License.** See the [LICENSE](LICENSE) file in the repository for the full license text.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import SwiftUI

/// A background effect that matches ``Luminare``.
public struct LuminareBackgroundEffect: ViewModifier {
public func body(content: Content) -> some View {
content
Expand All @@ -17,9 +18,3 @@ public struct LuminareBackgroundEffect: ViewModifier {
}
}
}

public extension View {
func luminareBackground() -> some View {
modifier(LuminareBackgroundEffect())
}
}
Loading