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

v1.2.8 #36

Merged
merged 2 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion FronteggSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'FronteggSwift'
s.version = '1.2.7'
s.version = '1.2.8'
s.summary = 'A swift library for easy integrating iOS application with Frontegg Services'
s.description = 'Frontegg is an end-to-end user management platform for B2B SaaS, powering strategies from PLG to enterprise readiness. Easy migration, no credit card required'
s.homepage = 'https://github.com/frontegg/frontegg-ios-swift'
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,19 +165,21 @@ your root project directory, this file will store values to be used variables by
// to navigate your application to the authenticated screen

let mainStoryboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)

// TODO: Set Storyboard ID 'authenticatedScreen' for your authenticated screen
let viewController = mainStoryboard.instantiateViewController(withIdentifier: "authenticatedScreen")
self.view.window?.rootViewController = viewController
self.view.window?.makeKeyAndVisible()
}

}
```
- Create new ViewController and set FronteggController as view custom class from the previous step
![ViewController custom class](./assets/README_custom-class.png)
- Create a new ViewController for AuthenticationController:
1. Change viewController's class to `AuthenticationController`
2. Set Storyboard ID to `fronteggController`
3. Make sure that the view controller is the initial view controller
![AuthenticationController](./assets/README_authentication_controller.png)

- Mark FronteggController as **Storyboard Entry Point**
![ViewController entry point](./assets/README_entry-point.png)

- Setup SceneDelegate for Frontegg universal links:
```swift
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
Expand Down
Binary file added assets/README_authentication_controller.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 1 addition & 8 deletions demo-uikit/demo-uikit/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@
<!--Authentication Controller-->
<scene sceneID="wEe-dg-Fkf">
<objects>
<viewController storyboardIdentifier="fronteggController" id="nxb-iA-gng" customClass="AuthenticationController" customModule="demo_uikit" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="W2D-H9-wLn">
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="yDd-Gz-bVp"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
</viewController>
<viewController storyboardIdentifier="fronteggController" id="nxb-iA-gng" customClass="AuthenticationController" customModule="demo_uikit" customModuleProvider="target" sceneMemberID="viewController"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="YCS-hS-XTC" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-760" y="-23"/>
Expand Down
Loading