Skip to content

Latest commit

 

History

History
152 lines (96 loc) · 3.94 KB

README.md

File metadata and controls

152 lines (96 loc) · 3.94 KB

Why Not SwiftUI!

A collection of Swift, SwiftUI and iOS goodies.

Feel free to request features or suggestions for improvements.

Developer

What we have hare!

Jailbroken checker

Check for device is jail-broken status.

Notification

Example for showing local notifications.

Accessibility Example

Example of common accessibility modifiers.

Bottom Nav vs Side Bar

A simple example to demonstrate separate views for iPhone and iPad. Users will see the bottom nav on iPhone and Sidebar on iPad.

Component: CoolProgress

Component: CoolToast

A cool "Android Toast" like implementation for SwiftUI.

Component: ImageViewCapturer: Media Capture & Select Example

Example for capturing image, recording video and selecting media from library.

Component: LabelToggle

A custom Toggle like component with inside label support.

MetricKit crash report example

On going...

Component: NativeAlert

SwiftUI modifier for UIAlertController. This is created to be able to change the Alert button colors.

Component: RingChart

Component: CustomTextFieldView with validation example

Typography: Custom Font

Add fonts to the project, add the fonts name to the plist file. Finally, use fontStyle(size:weight:) to set fonts.

Others

  • Example to create preview with mock Models and ViewModels (ObservableObject). (See Media Capture & Select Example)

TODO

  • MetricKit crash report example (WIP)
  • Full app custom font
  • Custom Sidebar: Finalize it (WIP)
  • Custom Build variant
  • Add documentation to the extensions
  • Moya finalize
  • Home list multiple accent color

Extensions

String (String+.swift)

  • md5()
  • fileName()
  • fileExtension()
  • isValidEmail()
  • isBlank()

Array (Array+.swift)

  • commaSeparatedString(emptyValue:) -> String : Combine string array separated by a comma.

UIImage (UIImage+.swift)

  • fileSize() -> Int : The file size in KB.

URL (URL+.swift)

  • fileSize() -> Int : The file size in KB.

Licence

Copyright 2021 Md. Mahmudul Hasan Shohagm

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.