You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -16,44 +16,49 @@ SwiftUI package for creating custom sidemenu with animation and flexible design
16
16
**About SSSwiftUISideMenu**<br/>
17
17
SSSwiftUISideMenu is highly customisable and easy to use Side menu control for iOS Applications. It support the SideMenu operations from left / right panel. user can navigate through the container views that added with the SideMenu MenuItems. It allows user to customise UI and animation style of their choice.
18
18
19
-
## Example
19
+
### Prerequisites
20
+
- iOS 13.0+
21
+
- Xcode 11.0+
22
+
-[CocoaPods](http://cocoapods.org/)
20
23
21
-
To run the example project, clone the repo, and run `pod install` from the Example directory first.
This pod requires a deployment target of iOS 13.0 or greater
28
+
- To run the example project, clone the repo, and run `pod install` from the Example directory first.
26
29
27
-
## Installation
30
+
# Installation
31
+
#### CocoaPods
28
32
29
-
### Cocoapods
33
+
- You can use CocoaPods to install `SSSwiftUISideMenu` by adding it to your Podfile:
30
34
31
-
SSSwiftUISideMenu is available through [CocoaPods](https://cocoapods.org). <br/>To install
32
-
it, simply add the following line to your Podfile:
35
+
use_frameworks!
36
+
pod 'SSSwiftUISideMenu'
33
37
34
-
```ruby
35
-
pod 'SSSwiftUISideMenu'
36
-
```
37
-
and run `pod install` from the root directory of project and in your code add `import SSSwiftUISideMenu` and boom you're done.💥
38
+
- Import SSSwiftUISideMenu in your file:
38
39
39
-
### Swift Package Manager
40
+
import SSSwiftUISideMenu
40
41
41
-
When using Xcode 11 or later, you can install `SSLineChart` through [Swift Package Manager](https://swift.org/package-manager/) by going to your Project settings > `Swift Packages` and add the repository by providing the GitHub URL. Alternatively, you can go to `File` > `Swift Packages` > `Add Package Dependencies...`
42
+
**Manually**
43
+
- Download and drop **SSSwiftUISideMenu/Sources** folder in your project.
44
+
- Grab yourself a cold 🍺.
42
45
43
-
### Manually
46
+
#### Swift Package Manager (SPM)
47
+
- When using Xcode 11 or later, you can install `SSSwiftUISideMenu` by going to your Project settings > `Swift Packages` and add the repository by providing the GitHub URL. Alternatively, you can go to `File` > `Swift Packages` > `Add Package Dependencies...`
44
48
45
-
1. Add `SSSwiftUISideMenu.swift` and `SSMenuConfig.swift` to your project.
Import the package in the file you would like to use it:
55
+
-Import the package in the file you would like to use it:
51
56
52
57
```swiftui
53
58
import SSSwiftUISideMenu
54
59
```
55
60
56
-
This library shares one View which you can use as a sidemenu with many customizations like UI, animation, direction and many more.
61
+
-This library shares one View which you can use as a sidemenu with many customizations like UI, animation, direction and many more.
57
62
Basic example:
58
63
59
64
```swift
@@ -74,13 +79,12 @@ var body: some Scene {
74
79
```
75
80
The results of any interaction from sidemenu item will available in declared selectedIndex state variable. Also sidemnu open / close toggle value will be available in the openSideMenu state variable.
76
81
77
-
Customizations
78
-
===
82
+
# Customizations
79
83
80
-
You can customize almost every main thing in this library.
81
-
For Customizations you have to pass another value of `menuConfig` during call of SSSwiftUISideMenu. This menuConfig argument is optional as well as Every arguments in `SSMenuConfig` is also Optional. So, you need to add only those arguments which yo wanted to customize. Here's the examples :
84
+
-You can customize almost every main thing in this library.
85
+
-For Customizations you have to pass another value of `menuConfig` during call of SSSwiftUISideMenu. This menuConfig argument is optional as well as Every arguments in `SSMenuConfig` is also Optional. So, you need to add only those arguments which yo wanted to customize. Here's the examples :
82
86
83
-
Change in Style
87
+
## Change in Style
84
88
-----
85
89
*An example of customisation of styles*
86
90
@@ -94,7 +98,7 @@ var body: some Scene {
94
98
}
95
99
```
96
100
97
-
Change SideMenu direction - Left / Right
101
+
## Change SideMenu direction - Left / Right
98
102
-----
99
103
*An example of change sidemenu direction. left direction is default*
100
104
@@ -106,7 +110,7 @@ var body: some Scene {
106
110
}
107
111
```
108
112
109
-
Add animation to your sidemenu
113
+
## Add animation to your sidemenu
110
114
-----
111
115
*An example of applying a animation type to the sidemenu*
112
116
@@ -118,10 +122,9 @@ var body: some Scene {
118
122
}
119
123
```
120
124
121
-
Other Customizations
122
-
===
125
+
# Other Customizations
123
126
124
-
SideMenu width
127
+
#### SideMenu width
125
128
----
126
129
*You can change the menu width of your choice with the menuWidth. By default is '280'.*<br/>
127
130
@@ -133,13 +136,13 @@ var body: some Scene {
133
136
}
134
137
```
135
138
136
-
Icon color and customizations
139
+
#### Icon color and customizations
137
140
-------
138
141
139
-
1. You can add leftIconPadding argument to change the icon padding from the left side of the sidemenu view.<br/>
140
-
2. You can add imageToTitlePadding argument for adding a padding between a icon and title.<br/>
141
-
3. You can add iconTintColor argument to change the icon tint color of your choice.<br/>
142
-
4. You can add iconHeight and iconWidth argument change the size of the row icons.<br/>
142
+
- You can add leftIconPadding argument to change the icon padding from the left side of the sidemenu view.<br/>
143
+
- You can add imageToTitlePadding argument for adding a padding between a icon and title.<br/>
144
+
- You can add iconTintColor argument to change the icon tint color of your choice.<br/>
145
+
- You can add iconHeight and iconWidth argument change the size of the row icons.<br/>
143
146
144
147
```swift
145
148
@@ -153,13 +156,13 @@ var body: some Scene {
153
156
}
154
157
```
155
158
156
-
Show App Version
159
+
#### Show App Version
157
160
-------
158
161
*An example of showing your app version at bottom of the sidemenu. you can configure its style and color. All are optionally configured.*
159
162
160
-
1. Add showAppVersion argument to weather to show app versio or not. Default is false<br/>
161
-
2. Add versionText argument for adding a pass the text of the version.<br/>
162
-
3. Add versionTitleColor, versionAlignment or versionFont argument to change the font style and color of the version string.<br/>
163
+
- Add showAppVersion argument to weather to show app versio or not. Default is false<br/>
164
+
- Add versionText argument for adding a pass the text of the version.<br/>
165
+
- Add versionTitleColor, versionAlignment or versionFont argument to change the font style and color of the version string.<br/>
163
166
164
167
```swift
165
168
@@ -174,7 +177,7 @@ var body: some Scene {
174
177
175
178
## Coming Soon
176
179
177
-
1. Pass custom view directly to the sidemenu to create sidemenu of your choice.<br/>
180
+
- Pass custom view directly to the sidemenu to create sidemenu of your choice.<br/>
178
181
179
182
**Up for a suggestions. Give suggestions for more features and customisations.**
180
183
@@ -200,4 +203,3 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
0 commit comments